{"name":"rabin","version":"2.0.0","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":"02d4e4a4a36f447b10633a0317894e8b65af32e6","_id":"rabin@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.4","_npmUser":{"name":"karissa","email":"krmckelv@gmail.com"},"dist":{"integrity":"sha512-xPlOX4kLNuhJIQ3eiGxwlXULMqjN2Tp+U/urb0Vm7XUGFLE41eR1g2eBg9WXXQWZ024V4ApZVPaJ5ylGH+4gKg==","shasum":"b4d241eff08d6227876a69fbbf8f72f1f91829b1","tarball":"http://registry-npm.ywwl.com/rabin/download/rabin-2.0.0.tgz","fileCount":16,"unpackedSize":18747,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc+aQGCRA9TVsSAnZWagAAbE8P/jSkXElDzeHz8MLhiS2u\nIvNXKPS53oKDaUIfKz+KelOuBFxgRh4UwyO8u5l0M7hOdP+Ku334813GQoqm\n8zWe3Vg9K4IQm2JU+HVVr5eZsNP6PKeQ8KAnFlIEhysDj6ztpDjdXWd48/Ix\n2a9S+VoLB3NvagWmQPkxn+lcVaMvZFXUcMPm/okoJvknwUQL2EbNfXmw3HOw\nONfkU7Esj5dTj+WlvOtsbl47G/KhHrFfg15YPoJpQ75vJLQENVaI6heW1R6n\n3XN7zewTCV8DsXpQK1zYscaxA3WiBTr2lDZVZx2gYv45c0llbVPksa8/G5kO\nVrTpg/uBhL+808N+kLVD4ysK9slpq0F3ufBBF1T1q5ltA9fKgIP9DoxnPzw9\nuLB1SgedYeOewfP4s6FUVeYDbZcTCiqkn8M2Bn8aIXSUCORSPqJCfy342jdw\n8yzxDIoy0Q0eCNNzXxj+Wk0mOBZf6oa8qoIfB3g9IqjOBcz8K8TPP1O8IcUR\nYLEdGLEEbeC4M9cp8cMeVnA+qjY1usXroYXHAuQ3T2vDhu2QTRdURk40n/FK\nDeHf9xCTGrgdXUFqLMFhia/aCOzFwjsA9G0UsuVL1BhjD+sM8rn8UeSqRidS\nZpwJbkpp2cLGjWg5NhoKiFN1Tw1etmcUTfQt738Cfhlw8fTAuJNXfBv4rTp7\nk++A\r\n=zzco\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3ffzrnz+8Rpc1a72PW57Wg2d9gdSFzqY0My98RtoQuwIhANLk+s742JX6QRuL4KywyVbGFQesltVr+owjhqWwccVh"}],"size":7812,"noattachment":false,"key":"/rabin/-/rabin-2.0.0.tgz"},"maintainers":[{"email":"julian@juliangruber.com","name":"juliangruber"},{"email":"krmckelv@gmail.com","name":"karissa"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rabin_2.0.0_1559864325774_0.8601781074203929"},"_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":1559864326013,"_cnpm_publish_time":1559864326013,"dist-tags":{"latest":"2.0.1"}}