{"_id":"inflation","_rev":"13-8e3837d926d5e8dec7ef0593a6023aec","name":"inflation","description":"Easily unzip an HTTP stream","dist-tags":{"latest":"2.1.0"},"versions":{"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","tarball":"https://registry.npmjs.org/inflation/-/inflation-1.0.0.tgz","integrity":"sha512-kpT80nL6ahd5IXed030e0KAVmSBbXz/F3TAS0xcRa/mwfAEWsQUlgONlV2ahDG+RFziYN7r+6DSSkFYfHENzcA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+u7GXX0/KmxWOVUWaSHEE1dLM3ZNjCZv2pe8auH9kAAIhAM2+Q8u9t6pfkYw0DgVq2umgEIPD1NlJ94elUY3fkqWW"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"directories":{}},"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","tarball":"https://registry.npmjs.org/inflation/-/inflation-1.0.1.tgz","integrity":"sha512-fQxOtIkbh7Y/TCfMshXK6PKHq0m3p+G5hz5ESR3/6JgpRuD84yMaJvt4s8QVfsiDadJ3Aj3gZaudQUua5HaUhg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZ8smyuOb7Nf42HDT+B+UP6zglDHs9YDHm4uRW7zXRkgIgNT5EmIAaedpg8xHtUHIsyPWiPoyF4kCwt/yCEhiwsP8="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"directories":{}},"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":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"}],"dist":{"shasum":"094850288371b266c6e0174bb46fc8e9ac4decba","tarball":"https://registry.npmjs.org/inflation/-/inflation-1.0.2.tgz","integrity":"sha512-ftDC0k2iSyDjYiRYGPEDj91k+CJT1h1XE8wCu9icXI7VdyUj1/nXkJngL4sxXNleAMJR3sOdkgG3/4GDmZcuYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSfG6iyOL3PrM3gG3NLf1NtRz7a3oa6iSuVmx09w2RVAIgPLhgZHe/0ulk0E6lokBXXx4edDN7lH6hi6rqIrMWV1E="}]},"directories":{}},"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","tarball":"https://registry.npmjs.org/inflation/-/inflation-2.0.0.tgz","integrity":"sha512-m3xv4hJYR2oXw4o4Y5l6P5P16WYmazYof+el6Al3f+YlggGj6qT9kImBAnzDelRALnP5d3h4jGBPKzYCizjZZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDN/aRlTkaD+5zZatQZWLAE6qyEl0smWq5aXwFz8VYnGgIhAMGENGAm5bwZuO1OZA4XzGOoY2VJ0FHe690oz0zx72OS"}]},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"dougwilson","email":"doug@somethingdoug.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/inflation-2.0.0.tgz_1460238386298_0.394563042325899"},"directories":{}},"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":{"integrity":"sha512-t54PPJHG1Pp7VQvxyVCJ9mBbjG3Hqryges9bXoOO6GExCPa+//i/d5GSuFtpx3ALLd7lgIAur6zrIlBQyJuMlQ==","shasum":"9214db11a47e6f756d111c4f9df96971c60f886c","tarball":"https://registry.npmjs.org/inflation/-/inflation-2.1.0.tgz","fileCount":4,"unpackedSize":4345,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFYLpZGbHWjLHmT0XefQGT5INj4YTCpK5LR2TWYpyj+wIhANbEwoASR1Jy7+Q04VZt+B9Lrku9QiWRHXkQe2lSFcRh"}]},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inflation_2.1.0_1697259417049_0.9164504571344878"},"_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","maintainers":[{"name":"dougwilson","email":"doug@somethingdoug.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"time":{"modified":"2023-10-14T04:56:57.448Z","created":"2014-04-24T22:04:55.394Z","1.0.0":"2014-04-24T22:04:55.394Z","1.0.1":"2014-04-24T22:06:53.414Z","1.0.2":"2014-06-14T01:32:02.962Z","2.0.0":"2016-04-09T21:46:26.792Z","2.1.0":"2023-10-14T04:56:57.263Z"},"homepage":"https://github.com/stream-utils/inflation#readme","keywords":["decompress","unzip","inflate","zlib","gunzip","brotli"],"repository":{"type":"git","url":"git+https://github.com/stream-utils/inflation.git"},"author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"bugs":{"url":"https://github.com/stream-utils/inflation/issues"},"license":"MIT","readmeFilename":"README.md"}