Skip to content

A pure js implementation of Rabin fingerprinting (aka. content defind chunking)

License

Notifications You must be signed in to change notification settings

wesleytodd/rabinjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :)

NPM Version NPM Downloads Build Status js-happiness-style

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.

About

A pure js implementation of Rabin fingerprinting (aka. content defind chunking)

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published