{
  "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"
  ],
  "readme": "# deflate-crc32-stream v0.1.0 [![Build Status](https://travis-ci.org/ctalkington/node-deflate-crc32-stream.svg?branch=master)](https://travis-ci.org/ctalkington/node-deflate-crc32-stream)\r\n\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[![NPM](https://nodei.co/npm/deflate-crc32-stream.png)](https://nodei.co/npm/deflate-crc32-stream/)\r\n\r\n### Install\r\n\r\n```bash\r\nnpm install deflate-crc32-stream --save\r\n```\r\n\r\nYou can also use `npm install https://github.com/ctalkington/node-deflate-crc32-stream/archive/master.tar.gz` to test upcoming versions.\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)",
  "readmeFilename": "README.md",
  "_id": "deflate-crc32-stream@0.1.1",
  "dist": {
    "shasum": "58f61af585d5e4aac0225dbfeeb435f781997a97"
  },
  "_from": "deflate-crc32-stream@~0.1.0",
  "_resolved": "https://registry.npmjs.org/deflate-crc32-stream/-/deflate-crc32-stream-0.1.1.tgz"
}
