update README and travis config

This commit is contained in:
Yi-Cyuan Chen
2017-11-19 16:41:14 +08:00
parent 3204c3743e
commit 08b64a16e5
2 changed files with 5 additions and 2 deletions
+1 -2
View File
@@ -4,8 +4,7 @@ node_js:
- "8.6.0"
before_install:
- npm install coveralls
- npm install mocha-lcov-reporter
script: npm run-script coveralls
after_success: npm run coveralls
branches:
only:
- master
+4
View File
@@ -63,6 +63,10 @@ require(['your/path/sha256.js'], function(sha256) {
// ...
});
```
or TypeScript
```TypeScript
import { sha256, sha224 } from 'js-sha256';
```
## Example
```JavaScript
sha256(''); // e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855