{"name":"crc32-stream","version":"4.0.0","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":"^3.4.4","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":"ab295105a0181117e5c0782fedefea9557a4932b","_id":"crc32-stream@4.0.0","_nodeVersion":"12.18.2","_npmVersion":"6.14.5","dist":{"integrity":"sha512-tyMw2IeUX6t9jhgXI6um0eKfWq4EIDpfv5m7GX4Jzp7eVelQ360xd8EPXJhp2mHwLQIkqlnMLjzqSZI3a+0wRw==","shasum":"05b7ca047d831e98c215538666f372b756d91893","tarball":"http://registry-npm.ywwl.com/crc32-stream/download/crc32-stream-4.0.0.tgz","fileCount":7,"unpackedSize":7899,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfE2SSCRA9TVsSAnZWagAAjskP/RUeIvoXyBYF7InEwNmY\nzB/LCyG5aP7tHl5CwebdgoxZqJ62f4ElVrQ4lPfz90RVax1LLkZGyGLFFP5B\nWjN0OhroFx8TL1fh7Y25b3rhDFYjfm3a2AXOS9VZoriRWH+s6DuDJagjz457\njo9/Hsr9zv/WYrb8CfLCAKpZHe1RGKyK3muJkK63QBOqsn8rvPojHXMp4hVY\nRzdRZ2sCflFf/etGL2662LYng8Ld5gNa2Vxkq87xOeHNCf9Vw/JKttJps9/s\nyxE4Fk2SfdUCKkq6c2nNyPzK3dsM+CT1JygYPy4/wUBRuGbOPz94/pjpkQC4\nbhW1/cNeYZvYNl4ziToMjr5bRg8bjm4MNu23zvXjjymUmLMsF1Sshr9R0Y7N\nwJri+2k0AYQKffYQ2oQxG8oxnhiNvPzyW70kgu/mxeJzr6kqK00v5Skth50Q\n5G/bgPQQv3XmVtIiNvVnRg38R4xZgSX71oHV4EeH4TCL36UPdGxZ/CBRgY+G\nvnu5T1C2bOjp2DYg+xWhIhJ98toUnnR9baq6tMmhrX3U4NWMv5PPNlL0x1wb\nfGUmQTi3kK1uNRtLxF32YXtXDQrVuL0LxYDLCerzeaLtSu8MxbDSn6VQCvPN\n8icdN/4PeBpVxLAuFs8sz/r65zVtZmFwhQfd77uIULf296atpSchoBHcDFhq\nEXeL\r\n=caAS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAN/WkkdrvOZyCkM5QgfQLzU5XqJnX6r1CI0DFmXoThTAiEAi3GzZpyepnvWxnTbxvbIN7pfCH0CtYM52ZEUXnJ/mNw="}],"size":2949,"noattachment":false,"key":"/crc32-stream/-/crc32-stream-4.0.0.tgz"},"maintainers":[{"name":"ctalkington","email":"chris@christalkington.com"}],"_npmUser":{"name":"ctalkington","email":"chris@talkingtontech.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crc32-stream_4.0.0_1595106449943_0.9879789307427258"},"_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":1595106450061,"_cnpm_publish_time":1595106450061,"dist-tags":{"latest":"7.0.1"}}