Skip to content

isaacs/hashing-stream

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'
  });

About

Pass thru stream which hashes incoming data

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published