{"name":"crc32-stream","version":"3.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":">= 6.9.0"},"scripts":{"test":"mocha --reporter dot"},"dependencies":{"crc":"^3.4.4","readable-stream":"^3.4.0"},"devDependencies":{"chai":"^4.0.0","mocha":"^6.2.0"},"keywords":["crc32-stream","crc32","stream","checksum"],"publishConfig":{"registry":"https://registry.npmjs.org/"},"gitHead":"e8c573934fd0135088c760d986348d0e45973740","_id":"crc32-stream@3.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"ctalkington","email":"chris@talkingtontech.com"},"dist":{"integrity":"sha512-mctvpXlbzsvK+6z8kJwSJ5crm7yBwrQMTybJzMw1O4lLGJqjlDCXY2Zw7KheiA6XBEcBmfLx1D88mjRGVJtY9w==","shasum":"cae6eeed003b0e44d739d279de5ae63b171b4e85","tarball":"http://registry-npm.ywwl.com/crc32-stream/download/crc32-stream-3.0.1.tgz","fileCount":7,"unpackedSize":8055,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdRFzICRA9TVsSAnZWagAAd+gP/iFY5gJoUEy19PgmhSr+\n5QgJV5td1P7oO4A8gTDDmWWyOf04AwPCfprYDUMJRfRRiPNR289n1vQ54i5l\n6lQmfREu0hUb/eBfQ7BZTu3cN6+Nyhfnlko2h+I5hw7N/KUURtQbf+8Pfmim\nRiN0cIk4bnLnqUfc/7laslRkSm2owFLnRIiYzmEelTG9K9fGRTCkQE00Z7e0\nF/BRc1AIxUYORAMvWwZ+x767FQTh+ACpTGhmCWLqEoN3rQOPbxRcCm4f0kDZ\nZCddgVjPQ0D4QvcGx1xi0K0Yyi9rT84IQgE+MIjeoapY7W5mLrRA9adtSTqt\nHK5m6+0/QBADeWNi8DTi7KEoj0sSTyaG97wLlL7AI4CBrO/J7jZxEpKjFOB4\n1EW5EQZq0z1WUDImEbgBqaSEYOYnK6iRvW6zzBuXXLi2PXIZEdnmi1SwPSQK\na6lVvz+VZQxUUuDzqJCWMXyjwJaCUMIJZBoWZ4MuV8q4q/Qg0sUs1WLi0+44\n0OYIDCqNPXXl559piwfPNah7xXJtGb5MEuDTfxanVdP6N0GpuRlGceZCFtpc\n+8J4xd6qoXJiEDb30eo18A2F021r1qUukzOn9YgfajmmFtlst+0uwTzLXnkS\ns+i1jG5twe1xypJcKCp3KfN7e9d6HLel+RSHTRMcALhkBjm7I4BFVHLQVMhy\n9PCo\r\n=3F+X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCudDy7QagOZ6T4PLs8AMXtjWZWKYs5T+zHS7PdX7HrlgIhALc6LiRhunaZOublOJxUK0pc5pHLV9+dSUnZ/Ix73uFo"}],"size":2961,"noattachment":false,"key":"/crc32-stream/-/crc32-stream-3.0.1.tgz"},"maintainers":[{"name":"ctalkington","email":"chris@christalkington.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crc32-stream_3.0.1_1564761287906_0.7261181255195746"},"_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":1564761288043,"_cnpm_publish_time":1564761288043,"dist-tags":{"latest":"7.0.1"}}