You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
zsmj dd41bae746 first commit 3 years ago
..
index.js first commit 3 years ago
license first commit 3 years ago
package.json first commit 3 years ago
readme.md first commit 3 years ago

readme.md

unzip-response Build Status

Unzip a HTTP response if needed

Unzips the response from http.request if it's gzipped/deflated, otherwise just passes it through.

Install

$ npm install --save unzip-response

Usage

const http = require('http');
const unzipResponse = require('unzip-response');

http.get('http://sindresorhus.com', res => {
	res = unzipResponse(res);
});

License

MIT © Sindre Sorhus