Bakhtina Sofya b84cb877be 1st comm | 2 هفته پیش | |
---|---|---|
.. | ||
index.js | 2 هفته پیش | |
license | 2 هفته پیش | |
package.json | 2 هفته پیش | |
readme.md | 2 هفته پیش |
Unzip a HTTP response if needed
Unzips the response from http.request
if it's gzipped/deflated, otherwise just passes it through.
$ npm install --save unzip-response
const http = require('http');
const unzipResponse = require('unzip-response');
http.get('http://sindresorhus.com', res => {
res = unzipResponse(res);
});
MIT © Sindre Sorhus