Skip to content

Commit 23a16cc

Browse files
committed
add ts notice
1 parent 0e27bc1 commit 23a16cc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,14 @@ var sha256 = require('tiny-sha256');
2323

2424
var jsCode = sha256.code + 'alert(sha256("hello!"));';
2525
```
26+
## In TypeScript
27+
28+
```typescript
29+
import { sha256 } from "/some/path/js-sha256/sha256.js";
30+
31+
sha256("some string");
32+
```
2633

2734
## License
2835

29-
This library is released as "public domain". You can copy, modify, re-release and re-license, or incorporate into any other project without restriction of any kind.
36+
This library is released as "public domain". You can copy, modify, re-release and re-license, or incorporate into any other project without restriction of any kind.

0 commit comments

Comments
 (0)