@prsm/hash 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,11 @@
2
2
 
3
3
  A very simple string hashing library.
4
4
 
5
- # create
5
+ # Installation
6
+
7
+ `npm install @prsm/jwt`
8
+
9
+ ## create
6
10
 
7
11
  ```typescript
8
12
  import { hash } from "@prsm/hash";
@@ -17,7 +21,7 @@ hash.create("secret");
17
21
  // sha256:0SA+O819D52jZOqWuzIWa+KLyT+Ck+b5ze4HI7fAJOhRW3FYk527GnuVOS/pricLy1KqwUfk5wWyQx4z5x3fsA==:wPs8DRMOrZEJYeaPxZzccGPJSozGvNqRhhS6f8ITOyM=
18
22
  ```
19
23
 
20
- # verify
24
+ ## verify
21
25
 
22
26
  ```typescript
23
27
  import { hash } from "@prsm/hash";
@@ -29,7 +33,7 @@ const valid = hash.verify(
29
33
  // valid = true
30
34
  ```
31
35
 
32
- # custom hasher
36
+ ## custom hasher
33
37
 
34
38
  ```typescript
35
39
  import { Hasher } from "@prsm/hash";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prsm/hash",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",