{"name":"deflate-crc32-stream","version":"0.1.2","description":"a streaming deflater with CRC32 checksumer","homepage":"https://github.com/ctalkington/node-deflate-crc32-stream","author":{"name":"Chris Talkington","url":"http://christalkington.com/"},"repository":{"type":"git","url":"https://github.com/ctalkington/node-deflate-crc32-stream.git"},"bugs":{"url":"https://github.com/ctalkington/node-deflate-crc32-stream/issues"},"licenses":[{"type":"MIT","url":"https://github.com/ctalkington/node-deflate-crc32-stream/blob/master/LICENSE-MIT"}],"main":"lib/deflate-crc32-stream.js","files":["lib","LICENSE-MIT"],"engines":{"node":">= 0.8.0"},"scripts":{"test":"mocha --reporter dot"},"dependencies":{"buffer-crc32":"~0.2.1"},"devDependencies":{"chai":"~1.8.1","mocha":"~1.16.0","readable-stream":"~1.0.24"},"keywords":["deflate","crc32-stream","crc32","stream","checksum"],"gitHead":"5d7368d9a1c43259055e80b8bb41f78b56d687c6","_id":"deflate-crc32-stream@0.1.2","_shasum":"975ea0e7303b75d85232198ab7b405c2d47baad5","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"ctalkington","email":"chris@christalkington.com"},"maintainers":[{"name":"ctalkington","email":"chris@christalkington.com"}],"dist":{"shasum":"975ea0e7303b75d85232198ab7b405c2d47baad5","tarball":"http://registry-npm.ywwl.com/deflate-crc32-stream/download/deflate-crc32-stream-0.1.2.tgz","integrity":"sha512-Rj5E7qk/oWRc9Nj43OnXlhlraSY1OeMk4zbRQQsVRyf8KVAT2Ajh2zaB7nFHuEQM3dU68TRuSmKeNQuKkJLQNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeWrLmB3nQKwFA4mlf0OWXcW0KoWIGb0azaFCmiyPxVAIgFQOfhHzaueEGE/VyjdCyY/sy/bJI2Gt2w9IWwCRyu1k="}],"size":2382,"noattachment":false,"key":"/deflate-crc32-stream/-/deflate-crc32-stream-0.1.2.tgz"},"deprecated":"module has been merged into crc32-stream","directories":{},"readme":"# deflate-crc32-stream v0.1.2\r\ndeflate-crc32-stream is a streaming deflater with CRC32 checksumer. It uses [buffer-crc32](https://www.npmjs.org/package/buffer-crc32) behind the scenes to reliably handle binary data and fancy character sets. Data comes through compressed with [zlib.DeflateRaw](http://nodejs.org/api/zlib.html#zlib_class_zlib_deflateraw).\r\n\r\n## Install\r\n\r\nThis module has been merged into [CRC32Stream](https://www.npmjs.org/package/crc32-stream). No future updates will be made to this module.\r\n\r\n### Usage\r\n\r\n```js\r\nvar CRC32Stream = require('deflate-crc32-stream');\r\n\r\nvar source = fs.createReadStream('file.txt');\r\nvar deflate = new DeflateCRC32Stream();\r\n\r\ndeflate.on('end', function(err) {\r\n  // do something with deflate.digest() here\r\n});\r\n\r\n// either pipe it\r\nsource.pipe(deflate);\r\n\r\n// or write it\r\ndeflate.write('string');\r\ndeflate.end();\r\n```\r\n\r\n### Instance API\r\n\r\nInherits [zlib.DeflateRaw](http://nodejs.org/api/zlib.html#zlib_class_zlib_deflateraw) methods.\r\n\r\n#### digest()\r\n\r\nReturns the checksum digest in unsigned form.\r\n\r\n#### hex()\r\n\r\nReturns the hexadecimal representation of the checksum digest. (ie E81722F0)\r\n\r\n#### size(compressed)\r\n\r\nReturns the raw uncompressed size/length of passed-through data.\r\n\r\nIf `compressed` is `true`, it returns compressed length instead.\r\n\r\n### Instance Options\r\n\r\nInherits [zlib.DeflateRaw](http://nodejs.org/api/zlib.html#zlib_class_zlib_deflateraw) options.\r\n\r\n## Things of Interest\r\n\r\n- [Changelog](https://github.com/ctalkington/node-deflate-crc32-stream/releases)\r\n- [Contributing](https://github.com/ctalkington/node-deflate-crc32-stream/blob/master/CONTRIBUTING.md)\r\n- [MIT License](https://github.com/ctalkington/node-deflate-crc32-stream/blob/master/LICENSE-MIT)","publish_time":1409057908183,"_cnpm_publish_time":1409057908183,"dist-tags":{"latest":"0.1.2"}}