Vinícius Ernani de Carvalho 6c4544a079 Create the backend 5 jaren geleden
..
index.js 6c4544a079 Create the backend 5 jaren geleden
license 6c4544a079 Create the backend 5 jaren geleden
package.json 6c4544a079 Create the backend 5 jaren geleden
readme.md 6c4544a079 Create the backend 5 jaren geleden

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