{"name":"rabin","version":"2.0.1","description":"node native bindings to a C rabin fingerprinting algorithm","main":"index.js","bin":{"rabin":"cli.js"},"keywords":["rabin","cdc","chunking","fingerprint","rolling hash","dedupe","deduplication","rsync"],"scripts":{"test":"echo \"It built! Add more tests later.\" && prebuild-ci","install":"prebuild-install || node-gyp rebuild","prebuild":"prebuild --all --strip --verbose"},"gypfile":true,"author":{"name":"max ogden"},"license":"ISC","dependencies":{"bindings":"^1.2.1","bl":"^1.0.0","debug":"^2.2.0","minimist":"^1.2.0","nan":"^2.1.0","prebuild-install":"^2.1.0","readable-stream":"^2.0.4"},"devDependencies":{"prebuild":"^6.0.2","prebuild-ci":"^2.0.0"},"repository":{"type":"git","url":"git+https://github.com/datproject/rabin.git"},"bugs":{"url":"https://github.com/datproject/rabin/issues"},"homepage":"https://github.com/datproject/rabin#readme","gitHead":"25f0ce2117c5d7846a32315e6eb38fcb9ab467b0","_id":"rabin@2.0.1","_nodeVersion":"16.1.0","_npmVersion":"7.16.0","dist":{"integrity":"sha512-EyFkCk4CLyg9COWwKbKpxb28vL1A5DbpvuJIDDXvdRrFE8tTX1d1S6rqwPcwhyR7tVClJ9lnh+K8mzAqPR+6hw==","shasum":"9c79028f18d6a1eb8cf7f70ee64b1e77bd924d2d","tarball":"http://registry-npm.ywwl.com/rabin/download/rabin-2.0.1.tgz","fileCount":16,"unpackedSize":19023,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1kvdCRA9TVsSAnZWagAAkoAP/RsiG88CDK8JMWvFNdoa\npN4GL6egMCClDkpuSEiRWGQx0iKHic7ygT18U4xa51s9HUoJ1Q7DoOmAGitu\nnTA2fqsSHa6GXmSxbNrojsD3GhTxGzU96ppSw8jPDYiJ/INIqq1NR5lqd7Ky\nBdH21Gh5Rzt9Y8/+o1PX2DuBkCHeYIMi+v2rB18a0GHNmBQWP5DXCHO87C/j\n6zyZaAd9eD0J7g2OQQNm5JeogHZz9mSp8bG6NpbBioG4ME5GdMduZx2ByGfu\nZTZ1OYcHl4eyuJur/Y8eh1Wahp5D0Ybyxx2Lc+CbNiugL3FZ5AjZCaS5zQrY\nCdLUShoELoodxNhJFl9stJMVTjzPxV2fr75LI8RktxHtxzZzvPqeEYfabd60\nMYP0DP6DG5+ZdwyK8iJl2I3WkPUt0JNmVbVx6YSp8jnh7OzXthCr4RNU5C18\nP8+1vKRDVBq3sxr+H0FpZ+H7xjlPZaH6tn+1Rb4oH4XSDyzh1bbf8uMRym7F\nBCAiwZoJgo1YkTkiuiJZw7/9A949lKEWevT5soQmTvTyLgio17KchzFjwzeu\nCyxn8sEpnfiBxCmyRr+Y9y6s4P1A2aaePc4yVAiiL7xsn3UT+U2hJmct/E3V\nGdGrGwMIrh2d0dIrXGbIabVWUGOf+AJWk9tBjSrMlqaIM5m2Vu8+NCfPZq7S\nRPhu\r\n=kUtN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBfUSIeGQcuo+l//2FWeq219+TjJd75TfehYzznIWA9AIgJ+VqErznfs51sUBGODLKafUWgrtbBVm3yv90ExL/6SE="}],"size":7883,"noattachment":false,"key":"/rabin/-/rabin-2.0.1.tgz"},"_npmUser":{"name":"ninabreznik","email":"ninabreznik@gmail.com"},"directories":{},"maintainers":[{"name":"leichtgewicht","email":"martin.heidegger@gmail.com"},{"name":"the-real-dk","email":"diego@geutstudio.com"},{"name":"pfrazee","email":"pfrazee@gmail.com"},{"name":"frando","email":"dev@unbiskant.org"},{"name":"cblgh","email":"angellus.falsus@gmail.com"},{"name":"ninabreznik","email":"ninabreznik@gmail.com"},{"name":"rangermauve","email":"rangermauve@hotmail.com"},{"name":"serapath","email":"dev@serapath.de"},{"name":"zootella","email":"zootella@zootella.com"},{"name":"jhand","email":"joe@hand.email"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"karissa","email":"krmckelv@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rabin_2.0.1_1641434077012_0.7629793672843959"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","readme":"[![deprecated](http://badges.github.io/stability-badges/dist/deprecated.svg)](https://dat-ecosystem.org/) \n\nMore info on active projects and modules at [dat-ecosystem.org](https://dat-ecosystem.org/) <img src=\"https://i.imgur.com/qZWlO1y.jpg\" width=\"30\" height=\"30\" /> \n\n---\n\n# rabin\n\nNode native addon module (C/C++) for [Rabin fingerprinting](https://en.wikipedia.org/wiki/Rabin_fingerprint) data streams.\n\n[![Build Status](https://travis-ci.org/datproject/rabin.svg?branch=master)](https://travis-ci.org/datproject/rabin)\n[![Build status](https://ci.appveyor.com/api/projects/status/u00ajj4hu7oy9cwv/branch/master?svg=true)](https://ci.appveyor.com/project/maxogden/rabin/branch/master)\n\n**Note**: This implementation is not currently used by DAT or maintained but it works and may come in handy in future.\n\nUses the implementation of Rabin fingerprinting from [LBFS](https://github.com/fd0/lbfs/tree/bdf4f17d23b68536e7805c88e269026c74c32d59/liblbfs).\n\nRabin fingerprinting is useful for finding the chunks of a file that differ from a previous version. It's one implementation of a technique called \"Content-defined chunking\", meaning the chunk boundaries are determinstic to the content (as opposed to \"fixed-sized chunking\").\n\nTheres a JavaScript API and an accompanying command-line tool.\n\n## JavaScript API\n\n### `var createRabin = require('rabin')`\n\n`createRabin` can be used to create multiple fingerprinting streams\n\n### `var rabin = createRabin()`\n\n`rabin` is a duplex stream. You write raw data in, and buffers chunked by rabin fingerprints will be written out.\n\n## JavaScript Example\n\n```js\n// require and create an instance\nvar rabin = require('rabin')()\n\n// pipe some data in\nvar rs = fs.createReadStream('somefile.dat')\nrs.pipe(rabin)\n\n// handle output chunks\nrabin.on('data', function (chunk) {\n  // chunks are created by taking your input data\n  // and splitting on each rabin fingerprint found\n})\n```\n\n## CLI API\n\n```\n$ npm install rabin -g\n$ rabin myfile.txt --bits=14 --min=8192 --max=32768 # defaults\n{\"length\":12182,\"offset\":0,\"hash\":\"5df6245b5897336ebf611d7f10fb90eea2d63c5b9ec9ad76dfb1ac72b8249dcb\"}\n{\"length\":13190,\"offset\":12182,\"hash\":\"67d5aaac9cf7b8432cb3c8071d726dc38f1138957c30719f8b166116a90950a1\"}\n{\"length\":11609,\"offset\":25372,\"hash\":\"976a0e3dc43de3abdf50b984a102c5fb7c2550e3dc5e44e4a8f7d4241276683b\"}\n{\"length\":10010,\"offset\":36981,\"hash\":\"7145d10f93ea03e6c8b4dd5ab148e2c3c08f9c71bf71c7559dffdfcef48112c1\"}\n{\"length\":13623,\"offset\":46991,\"hash\":\"76470d5047f9fb31bd75364d90355fdbf913aaa1df934251f43c894f01381f1b\"}\n{\"length\":8197,\"offset\":60614,\"hash\":\"88abce05bc75f72cdafeabd5125eb46fa8f73eab2d75a29076aeb3f99ef35548\"}\n{\"length\":16242,\"offset\":68811,\"hash\":\"08d60789c1e901d6a8e474aeb5de4746af1648e7f3a4ac7a3dba87d9e73fca56\"}\n{\"length\":14947,\"offset\":85053,\"hash\":\"4224e6f4361fa8bdefb9d8e10ebd046e2869af2c44ea7e84c7efaeedd5423b30\"}\naverage 12500\n```\n\n","publish_time":1641434077167,"_cnpm_publish_time":1641434077167,"dist-tags":{"latest":"2.0.1"}}