1.0.2 • Published 9 years ago
stream-hash v1.0.2
stream-hash
A transform stream that calls back with a hash.
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