{"name":"inflation","description":"Easily unzip an HTTP stream","version":"1.0.2","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"git://github.com/stream-utils/inflation"},"keywords":["decompress","unzip","inflate","zlib","gunzip"],"devDependencies":{"istanbul":"0.2.10","mocha":"~1.20.1","readable-stream":"~1.0.27","should":"4.0.4"},"engines":{"node":">= 0.8.0"},"scripts":{"test":"mocha --reporter spec --bail test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec test/"},"gitHead":"dffe2b9dcd7ad85006d1d7986553831ca9bb3061","bugs":{"url":"https://github.com/stream-utils/inflation/issues"},"homepage":"https://github.com/stream-utils/inflation","_id":"inflation@1.0.2","_shasum":"094850288371b266c6e0174bb46fc8e9ac4decba","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"}],"dist":{"shasum":"094850288371b266c6e0174bb46fc8e9ac4decba","tarball":"http://registry-npm.ywwl.com/inflation/download/inflation-1.0.2.tgz","integrity":"sha512-ftDC0k2iSyDjYiRYGPEDj91k+CJT1h1XE8wCu9icXI7VdyUj1/nXkJngL4sxXNleAMJR3sOdkgG3/4GDmZcuYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSfG6iyOL3PrM3gG3NLf1NtRz7a3oa6iSuVmx09w2RVAIgPLhgZHe/0ulk0E6lokBXXx4edDN7lH6hi6rqIrMWV1E="}],"size":1993,"noattachment":false,"key":"/inflation/-/inflation-1.0.2.tgz"},"directories":{},"readme":"# inflation\n\n[![NPM version](https://badge.fury.io/js/inflation.svg)](http://badge.fury.io/js/inflation)\n[![CI](https://github.com/stream-utils/inflation/actions/workflows/nodejs.yml/badge.svg)](https://github.com/stream-utils/inflation/actions/workflows/nodejs.yml)\n\nAutomatically unzip an HTTP stream.\n\n## API\n\n```js\nvar inflate = require('inflation')\n```\n\n### inflate(stream, options)\n\nReturns a stream that emits inflated data from the given stream.\n\nOptions:\n\n- `encoding` - The encoding of the stream (`gzip` or `deflate`).\n  If not given, will look in `stream.headers['content-encoding']`.\n- `brotli` - [`BrotliOptions`](https://nodejs.org/api/zlib.html#class-brotlioptions) to use for Brotli decompression\n\n## Example\n\n```js\nvar inflate = require('inflation')\nvar raw     = require('raw-body')\n\nhttp.createServer(function (req, res) {\n  raw(inflate(req), 'utf-8', function (err, string) {\n    console.dir(string)\n  })\n})\n```\n\n<!-- GITCONTRIBUTOR_START -->\n\n## Contributors\n\n|[<img src=\"https://avatars.githubusercontent.com/u/67512?v=4\" width=\"100px;\"/><br/><sub><b>dougwilson</b></sub>](https://github.com/dougwilson)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/73755?v=4\" width=\"100px;\"/><br/><sub><b>bminer</b></sub>](https://github.com/bminer)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/156269?v=4\" width=\"100px;\"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|\n| :---: | :---: | :---: |\n\n\nThis project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Sat Oct 14 2023 12:55:08 GMT+0800`.\n\n<!-- GITCONTRIBUTOR_END -->\n","publish_time":1402709522962,"_cnpm_publish_time":1402709522962,"dist-tags":{"latest":"2.1.0"}}