sha1-stream

Node SHA1 stream library

Usage no npm install needed!

<script type="module">
  import sha1Stream from 'https://cdn.skypack.dev/sha1-stream';
</script>

README

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