{"name":"deflate-crc32-stream","version":"0.1.1","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"],"_id":"deflate-crc32-stream@0.1.1","_shasum":"5df9e343174f56e7d6056e8ba1f91e5576c02160","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"ctalkington","email":"chris@christalkington.com"},"maintainers":[{"name":"ctalkington","email":"chris@christalkington.com"}],"dist":{"shasum":"5df9e343174f56e7d6056e8ba1f91e5576c02160","tarball":"http://registry-npm.ywwl.com/deflate-crc32-stream/download/deflate-crc32-stream-0.1.1.tgz","integrity":"sha512-oR2uOdO/uqY9yiAEZPOZXnIgGHua2Ch0APbCyaMVt+4WGyBohc93iepcjD0Bn66m/EMoxBlvpbhi7cBDiE85Fw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHrSS7QhQnLKuix172g0XcWRu1bXKVKiy0w71jX3X6+4AiAhfffU+OVMZKmuF+DIb459RMNinjAlCTZsVneGzx2JLQ=="}],"size":2460,"noattachment":false,"key":"/deflate-crc32-stream/-/deflate-crc32-stream-0.1.1.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":1401123179574,"_cnpm_publish_time":1401123179574,"dist-tags":{"latest":"0.1.2"}}