{"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":"http://registry-npm.ywwl.com/inflation/download/inflation-1.0.0.tgz","integrity":"sha512-kpT80nL6ahd5IXed030e0KAVmSBbXz/F3TAS0xcRa/mwfAEWsQUlgONlV2ahDG+RFziYN7r+6DSSkFYfHENzcA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+u7GXX0/KmxWOVUWaSHEE1dLM3ZNjCZv2pe8auH9kAAIhAM2+Q8u9t6pfkYw0DgVq2umgEIPD1NlJ94elUY3fkqWW"}],"size":1863,"noattachment":false,"key":"/inflation/-/inflation-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"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":1398377095394,"_cnpm_publish_time":1398377095394,"dist-tags":{"latest":"2.1.0"}}