sha1-stream

1.0.2 • Public • Published

sha1-stream Build Status

Node Hashing Stream library

Usage

var fs = require('fs')
var shastream = require('sha1-stream')

//create a new stream
var sniff = shastream.createStream('sha256')
sniff.on('digest',function(result){
  console.log(result) //a03f181dc7dedcfb577511149b8844711efdb04f
})

//pipe something into the stream
fs.createReadStream('myfile.txt').pipe(sniff)

Changelog

1.0.2

  • Update dependencies
  • Update package.json

1.0.1

  • Update promisePipe helper

1.0.0

  • Version bump
  • Update dependencies
  • Drop promisePipe in tests and implement custom helper

0.2.1

  • Small fix to finish refactoring some files

0.2.0

  • Add support for any hash instead of SHA1. Could pose a package rename.

0.1.0

  • Initial Release

Package Sidebar

Install

npm i sha1-stream

Weekly Downloads

22

Version

1.0.2

License

none

Unpacked Size

8.32 kB

Total Files

15

Last publish

Collaborators

  • nullivex