Bakhtina Sofya b84cb877be 1st comm 2 semanas atrás
..
index.js b84cb877be 1st comm 2 semanas atrás
license b84cb877be 1st comm 2 semanas atrás
package.json b84cb877be 1st comm 2 semanas atrás
readme.md b84cb877be 1st comm 2 semanas atrás

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