|
|
3 yıl önce | |
|---|---|---|
| .. | ||
| index.js | 3 yıl önce | |
| license | 3 yıl önce | |
| package.json | 3 yıl önce | |
| readme.md | 3 yıl önce | |
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