{"_id":"inflation","_rev":"3688868","name":"inflation","description":"Easily unzip an HTTP stream","dist-tags":{"latest":"2.1.0"},"maintainers":[{"name":"dougwilson","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"time":{"modified":"2025-02-13T05:46:31.000Z","created":"2014-04-24T22:04:55.394Z","2.1.0":"2023-10-14T04:56:57.263Z","2.0.0":"2016-04-09T21:46:26.792Z","1.0.2":"2014-06-14T01:32:02.962Z","1.0.1":"2014-04-24T22:06:53.414Z","1.0.0":"2014-04-24T22:04:55.394Z"},"users":{},"author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"repository":{"type":"git","url":"git+https://github.com/stream-utils/inflation.git"},"versions":{"2.1.0":{"name":"inflation","description":"Easily unzip an HTTP stream","version":"2.1.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/stream-utils/inflation.git"},"keywords":["decompress","unzip","inflate","zlib","gunzip","brotli"],"devDependencies":{"git-contributor":"^2.1.5","istanbul":"0.2.10","mocha":"^10.2.0","readable-stream":"~1.0.27","should":"4.0.4"},"engines":{"node":">= 0.8.0"},"scripts":{"test":"mocha --reporter spec --bail test/*.js","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot test/","contributor":"git-contributor"},"_id":"inflation@2.1.0","gitHead":"984511eeb538fe144a5e97d85544ec1d470876a9","bugs":{"url":"https://github.com/stream-utils/inflation/issues"},"homepage":"https://github.com/stream-utils/inflation#readme","_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"shasum":"9214db11a47e6f756d111c4f9df96971c60f886c","size":2189,"noattachment":false,"key":"/inflation/-/inflation-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/inflation/download/inflation-2.1.0.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"dougwilson","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inflation_2.1.0_1697259417049_0.9164504571344878"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-14T04:56:57.263Z","publish_time":1697259417263,"_source_registry_name":"default","_cnpm_publish_time":1697259417263},"2.0.0":{"name":"inflation","description":"Easily unzip an HTTP stream","version":"2.0.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/stream-utils/inflation.git"},"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/"},"files":["index.js"],"gitHead":"f35cb3109d334370ff9a62ea4012453177a35c50","bugs":{"url":"https://github.com/stream-utils/inflation/issues"},"homepage":"https://github.com/stream-utils/inflation#readme","_id":"inflation@2.0.0","_shasum":"8b417e47c28f925a45133d914ca1fd389107f30f","_from":".","_npmVersion":"3.8.5","_nodeVersion":"5.10.0","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"dist":{"shasum":"8b417e47c28f925a45133d914ca1fd389107f30f","size":2058,"noattachment":false,"key":"/inflation/-/inflation-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/inflation/download/inflation-2.0.0.tgz"},"maintainers":[{"name":"dougwilson","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/inflation-2.0.0.tgz_1460238386298_0.394563042325899"},"directories":{},"publish_time":1460238386792,"_cnpm_publish_time":1460238386792,"_hasShrinkwrap":false},"1.0.2":{"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":"dougwilson","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"dist":{"shasum":"094850288371b266c6e0174bb46fc8e9ac4decba","size":1993,"noattachment":false,"key":"/inflation/-/inflation-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/inflation/download/inflation-1.0.2.tgz"},"directories":{},"publish_time":1402709522962,"_cnpm_publish_time":1402709522962,"_hasShrinkwrap":false},"1.0.1":{"name":"inflation","description":"Easily unzip an HTTP stream","version":"1.0.1","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"],"bugs":{"url":"https://github.com/stream-utils/inflation/issues"},"homepage":"https://github.com/stream-utils/inflation","_id":"inflation@1.0.1","dist":{"shasum":"8d0fe6ab1fd38a737130966f362de760e4a325d9","size":1887,"noattachment":false,"key":"/inflation/-/inflation-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/inflation/download/inflation-1.0.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"dougwilson","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"directories":{},"publish_time":1398377213414,"_cnpm_publish_time":1398377213414,"_hasShrinkwrap":false},"1.0.0":{"name":"inflation","description":"Easily unzip an HTTP stream","version":"1.0.0","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"],"bugs":{"url":"https://github.com/stream-utils/inflation/issues"},"homepage":"https://github.com/stream-utils/inflation","_id":"inflation@1.0.0","dist":{"shasum":"4ed79cb93898a53bd4a021aa342dd7cebddefdd2","size":1863,"noattachment":false,"key":"/inflation/-/inflation-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/inflation/download/inflation-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"dougwilson","email":""},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"directories":{},"publish_time":1398377095394,"_cnpm_publish_time":1398377095394,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/stream-utils/inflation#readme","bugs":{"url":"https://github.com/stream-utils/inflation/issues"},"license":"MIT"}