Miss any of our Open RFC calls?Watch the recordings here! »

hashing-stream

0.1.1 • Public • Published

hashing-stream Build Status

hashing-stream is a simple pass thru stream which hashes incoming data.

Installation

npm install hashing-stream

Usage

var HashingStream = require('hashing-stream').HashingStream;
 
fs.createReadStream('fillerama.txt')
  .pipe(new HashingStream('sha1'))
  .on('end', function (hash) {
    hash.digest('hex'); // => '65f3bd7e5bed93ebef9fb5338d9b9a19deb5c2d5'
  });

Keywords

none

Install

npm i hashing-stream

DownloadsWeekly Downloads

0

Version

0.1.1

License

none

Last publish

Collaborators

  • avatar