{"name":"crc32-stream","version":"0.3.2","description":"a streaming CRC32 checksumer","homepage":"https://github.com/archiverjs/node-crc32-stream","author":{"name":"Chris Talkington","url":"http://christalkington.com/"},"repository":{"type":"git","url":"https://github.com/archiverjs/node-crc32-stream.git"},"bugs":{"url":"https://github.com/archiverjs/node-crc32-stream/issues"},"licenses":[{"type":"MIT","url":"https://github.com/archiverjs/node-crc32-stream/blob/master/LICENSE-MIT"}],"main":"lib/index.js","files":["lib","LICENSE-MIT"],"engines":{"node":">= 0.8.0"},"scripts":{"test":"mocha --reporter dot"},"dependencies":{"readable-stream":"~1.0.24","buffer-crc32":"~0.2.1"},"devDependencies":{"chai":"~2.0.0","mocha":"~2.1.0"},"keywords":["crc32-stream","crc32","stream","checksum"],"gitHead":"5fff7a70787e28b634c166ecb4e6184ad0efca66","_id":"crc32-stream@0.3.2","_shasum":"8c86a5c4ed38c53e36750d662784ad8ec642e38e","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"ctalkington","email":"chris@christalkington.com"},"maintainers":[{"name":"ctalkington","email":"chris@christalkington.com"}],"dist":{"shasum":"8c86a5c4ed38c53e36750d662784ad8ec642e38e","tarball":"http://registry-npm.ywwl.com/crc32-stream/download/crc32-stream-0.3.2.tgz","integrity":"sha512-+qI6LCK40WFMS7K7RisD4oVF+vtQlOgimjwkHqYD5AByJyBlZiNfbCNBX4Ytx37Hc1502yuXns1b/NURBSjd8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFA6tvoOEqHmCS/Qzr+n6iquJUHOR+X0wFcmQD2lNOBqAiBOp7RTZCZydcfj/LjWum6fWSVGMm+rmP9eE4SPjjuRyg=="}],"size":2900,"noattachment":false,"key":"/crc32-stream/-/crc32-stream-0.3.2.tgz"},"directories":{},"readme":"# CRC32 Stream\n\ncrc32-stream is a streaming CRC32 checksumer. It uses the [crc](https://www.npmjs.org/package/crc) module behind the scenes to reliably handle binary data and fancy character sets. Data is passed through untouched.\n\n### Install\n\n```bash\nnpm install crc32-stream --save\n```\n\nYou can also use `npm install https://github.com/archiverjs/node-crc32-stream/archive/master.tar.gz` to test upcoming versions.\n\n### Usage\n\n#### CRC32Stream\n\nInherits [Transform Stream](http://nodejs.org/api/stream.html#stream_class_stream_transform) options and methods.\n\n```js\nconst {CRC32Stream} = require('crc32-stream');\n\nconst source = fs.createReadStream('file.txt');\nconst checksum = new CRC32Stream();\n\nchecksum.on('end', function(err) {\n  // do something with checksum.digest() here\n});\n\n// either pipe it\nsource.pipe(checksum);\n\n// or write it\nchecksum.write('string');\nchecksum.end();\n```\n\n#### DeflateCRC32Stream\n\nInherits [zlib.DeflateRaw](http://nodejs.org/api/zlib.html#zlib_class_zlib_deflateraw) options and methods.\n\n```js\nconst {DeflateCRC32Stream} = require('crc32-stream');\n\nconst source = fs.createReadStream('file.txt');\nconst checksum = new DeflateCRC32Stream();\n\nchecksum.on('end', function(err) {\n  // do something with checksum.digest() here\n});\n\n// either pipe it\nsource.pipe(checksum);\n\n// or write it\nchecksum.write('string');\nchecksum.end();\n```\n\n### Instance API\n\n#### digest()\n\nReturns the checksum digest in unsigned form.\n\n#### hex()\n\nReturns the hexadecimal representation of the checksum digest. (ie E81722F0)\n\n#### size(compressed)\n\nReturns the raw size/length of passed-through data.\n\nIf `compressed` is `true`, it returns compressed length instead. (DeflateCRC32Stream)\n\n## Things of Interest\n\n- [Changelog](https://github.com/archiverjs/node-crc32-stream/releases)\n- [Contributing](https://github.com/archiverjs/node-crc32-stream/blob/master/CONTRIBUTING.md)\n- [MIT License](https://github.com/archiverjs/node-crc32-stream/blob/master/LICENSE-MIT)\n","publish_time":1423967059539,"_cnpm_publish_time":1423967059539,"dist-tags":{"latest":"7.0.1"}}