[Pkg-javascript-commits] [node-hash.js] 02/19: readme: update
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Aug 25 12:00:11 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-hash.js.
commit 6942e5325d9afaade2b0ebdb12323ad9085ccd16
Author: Fedor Indutny <fedor at indutny.com>
Date: Tue Jun 20 00:46:42 2017 -0400
readme: update
---
.travis.yml | 1 +
README.md | 19 +++++++++++++++----
2 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 551700d..78cd8ee 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,3 +1,4 @@
+sudo: false
language: node_js
node_js:
- "0.10"
diff --git a/README.md b/README.md
index 7ee7e60..006d3bb 100644
--- a/README.md
+++ b/README.md
@@ -1,15 +1,26 @@
-# hash.js [![Build Status](https://secure.travis-ci.org/indutny/hash.js.png)](http://travis-ci.org/indutny/hash.js)
+# hash.js [![Build Status](https://secure.travis-ci.org/indutny/hash.js.svg)](http://travis-ci.org/indutny/hash.js)
Just a bike-shed.
## Install
- npm install hash.js
+```sh
+npm install hash.js
+```
## Usage
- var hash = require('hash.js')
- hash.sha256().update('abc').digest('hex')
+```js
+var hash = require('hash.js')
+hash.sha256().update('abc').digest('hex')
+```
+
+## Selective hash usage
+
+```js
+var sha512 = require('hash.js/lib/hash/sha/512');
+sha512().update('abc').digest('hex');
+```
#### LICENSE
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-hash.js.git
More information about the Pkg-javascript-commits
mailing list