rabinjs
v0.0.1
Published
A pure js implementation of rabin fingerprinting
Downloads
2
Maintainers
Readme
rabin
This is a work in progress. I think this currently works, but I need to do a bunch more testing and optimization. If you know more about this than me, PLEASE HELP :)
Install
$ npm install --save rabinjs
Usage
var fs = require('fs');
var rabin = require('rabinjs');
var chunks = [];
fs.createReadStream('rabin.pdf').pipe(rabin())
.on('data', function (d) {
chunks.push(d);
})
.on('end', function (d) {
console.log('File processed!');
console.log('Chunks: ', chunks.length);
});
Development
The tests can be run with npm test
, which also runs the linter and any other builds steps for the module.
When a release is ready, use npm to bump the version:
$ npm version minor
$ git push
$ npm publish
Pull requests should be made against master or the currently active development branch.