Skip to content
Permalink
Browse files
readme: update
  • Loading branch information
indutny committed Jun 20, 2017
1 parent ec31478 commit 6942e5325d9afaade2b0ebdb12323ad9085ccd16
Showing with 16 additions and 4 deletions.
  1. +1 −0 .travis.yml
  2. +15 −4 README.md
@@ -1,3 +1,4 @@
sudo: false
language: node_js
node_js:
- "0.10"
@@ -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

0 comments on commit 6942e53

Please sign in to comment.