{"name":"crc32-stream","version":"4.0.1","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":"git+https://github.com/archiverjs/node-crc32-stream.git"},"bugs":{"url":"https://github.com/archiverjs/node-crc32-stream/issues"},"license":"MIT","main":"lib/index.js","engines":{"node":">= 10"},"scripts":{"test":"mocha --reporter dot"},"dependencies":{"crc-32":"^1.2.0","readable-stream":"^3.4.0"},"devDependencies":{"chai":"^4.0.0","mocha":"^8.0.1"},"keywords":["crc32-stream","crc32","stream","checksum"],"publishConfig":{"registry":"https://registry.npmjs.org/"},"gitHead":"841b57e54b4777dde48259bcc2b8a53857edee75","_id":"crc32-stream@4.0.1","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-FN5V+weeO/8JaXsamelVYO1PHyeCsuL3HcG4cqsj0ceARcocxalaShCsohZMSAF+db7UYFwBy1rARK/0oFItUw==","shasum":"0f047d74041737f8a55e86837a1b826bd8ab0067","tarball":"http://registry-npm.ywwl.com/crc32-stream/download/crc32-stream-4.0.1.tgz","fileCount":7,"unpackedSize":7924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftdkMCRA9TVsSAnZWagAAXfQP/2c9bF92PqAJM6ybtMhf\n7FBbYvMYV9fGwKpLAThXGDkH/zqBNOosc5F5reo0bfEQBnd6jShcKXnlJ87W\n6y1UQ4ROAospgwBrHq3jxWEElEYdTng1+4ycUS4GJxMIMixRK8ZtVvx6SsiR\nFYeKK0AKoK7qpXO66FEWelZfGRSKAUUftSa7BCrD639CN0qOL52SmWTy6gTa\n8a29vuVl/XYi1d8dkyJOFQ+1QeFkzli/4iQEGoQMt9xBmMwsM5OS9dzF4YGk\nEWTMLFnV9kDGETNNvnMOVmKVl5nwIqbDLDPDpH14pNP2Lum0XcAIrUZ+YMAj\n4Y/B898Va5TXUhs8DOVGhp6ewfJF3Lqnip3Ab/e/H1VMhrli5+7s2XWSB3O4\nl4B5lzBRKMtBi11eN1TBWHLRmxJBdx2MTOYBEJdLQjqpieMj1fIRjNoAwR5Y\n20YgHfff1E2I9Zi9ofFP8kVQTbbW96tQi0a9buMc1ehNJ1enhq+pEfX8cCWL\nf1x7XRcVng/Teo386jFLS6hHZfGgI1QGWxjUGp1Wkduo0t1h8l8IZtB0hzln\nZqyr00fEmwdafD4j/eSTbZ5udqzhFQqRKjetMH3ZAApcpQ0eFztqHZpKPFJR\n6ZxXjx+EQ8sB+9H0TThwuyBJ4/AuOn01Htu90aEqzXLfT7+8hveHZcycXZQ5\ng+fE\r\n=lfEo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG2qXzVBFpOMXJaxCb+3XYjF2OOkzWhZY0JPDMoeD+vtAiAGV7FHG0752tAOSrBJo1pCuIoCoahj57fJWTUpwwBkdA=="}],"size":2966,"noattachment":false,"key":"/crc32-stream/-/crc32-stream-4.0.1.tgz"},"_npmUser":{"name":"ctalkington","email":"chris@talkingtontech.com"},"directories":{},"maintainers":[{"name":"ctalkington","email":"chris@talkingtontech.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crc32-stream_4.0.1_1605753100538_0.26994729908161696"},"_hasShrinkwrap":false,"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":1605753100644,"_cnpm_publish_time":1605753100644,"dist-tags":{"latest":"7.0.1"}}