npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

stream-hash

1.0.2

@juliangruber

npmHomeRepoSnykSocket
Downloads:0
$ npm install stream-hash
DailyWeeklyMonthlyYearly

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