Easily unzip an HTTP stream
npm install inflation

Automatically unzip an HTTP stream.
``js`
var inflate = require('inflation')
Returns a stream that emits inflated data from the given stream.
Options:
- encoding - The encoding of the stream (gzip or deflate).stream.headers['content-encoding']
If not given, will look in .brotli
- - BrotliOptions to use for Brotli decompression
`js
var inflate = require('inflation')
var raw = require('raw-body')
http.createServer(function (req, res) {
raw(inflate(req), 'utf-8', function (err, string) {
console.dir(string)
})
})
`
|
dougwilson
|
bminer
|
fengmk2
|
| :---: | :---: | :---: |
This project follows the git-contributor spec, auto updated at Sat Oct 14 2023 12:55:08 GMT+0800`.