unzip-response-es5
v1.0.0
Published
Unzip a HTTP response if needed
Downloads
2
Maintainers
Readme
unzip-response-es5
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