Skip to content

Commit f6abdfb

Browse files
authored
Add Deno documentation (#112)
1 parent b89d707 commit f6abdfb

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@ const jsSHA1 = require("jssha/dist/sha1");
4949
import jsSHA from "jssha";
5050
```
5151

52+
#### Deno
53+
54+
jsSHA simply works with Deno via the `npm:` import specifier:
55+
56+
```typescript
57+
import jsSHA from "npm:jssha";
58+
/* Limited variant files are also available */
59+
import jsSHA1 from "npm:jssha/sha1";
60+
```
61+
62+
TypeScript types are resolved automatically from the package.
63+
5264
### Hashing
5365

5466
Instantiate a new `jsSHA` object with the desired hash variant, input format,

0 commit comments

Comments
 (0)