unique-hash-stream

Remove duplicates from a stream based on a hashing function

Usage no npm install needed!

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

README

unique-hash-stream

NPM version Build status Test coverage Dependency Status License Downloads Gittip

Filter duplicates from a stream based on a hashing function. By default, this hashing function is:

sha256sum(JSON.stringify(doc))

API

var stream = unique([fn])

Where you can supply your own hashing function.