sha1-stream

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

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
Languagejavascript
Version0.2.1
Git URLhttps://github.com/nullivex/sha1-stream
LicenseMIT
Description
Keywords