1.0.2 • Published 9 years ago

stream-hash v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

stream-hash

A transform stream that calls back with a hash.

build status

Example

var Hash = require('stream-hash');
var fs = require('fs');

fs.createReadStream(__dirname + '/index.js')

.pipe(Hash({ algorithm: 'sha1', encoding: 'hex' }, function(hash){
  console.log('hash', hash);
}))

.pipe(fs.createWriteStream('/tmp/nope'));

Installation

$ npm install stream-hash

License

MIT