Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Pass thru stream which hashes incoming data
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
LICENSE
README.md
package.json

README.md

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'
  });
Something went wrong with that request. Please try again.