2019-01-06 13:14:45 -06:00
..
2019-01-06 13:14:45 -06:00
2019-01-06 13:14:45 -06:00
2019-01-06 13:14:45 -06:00
2019-01-06 13:14:45 -06:00

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