You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sindre Sorhus
099b841a51
|
8 years ago | |
---|---|---|
test | 8 years ago | |
.editorconfig | 9 years ago | |
.gitattributes | 9 years ago | |
.gitignore | 9 years ago | |
.jshintrc | 9 years ago | |
.travis.yml | 9 years ago | |
index.js | 8 years ago | |
license | 9 years ago | |
package.json | 8 years ago | |
readme.md | 9 years ago |
readme.md
unzip-response
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
var http = require('http');
var unzipResponse = require('unzip-response');
http.get('http://sindresorhus.com', function (res) {
res = unzipResponse(res);
});
License
MIT © Sindre Sorhus