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 1.0.1 8 years ago
test Ignore unexpected EOF errors (#1) 8 years ago
.editorconfig init 9 years ago
.gitattributes init 9 years ago
.gitignore init 9 years ago
.jshintrc init 9 years ago
.travis.yml init 9 years ago
index.js Ignore unexpected EOF errors (#1) 8 years ago
license init 9 years ago
package.json 1.0.1 8 years ago
readme.md init 9 years ago

readme.md

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

var http = require('http');
var unzipResponse = require('unzip-response');

http.get('http://sindresorhus.com', function (res) {
	res = unzipResponse(res);
});

License

MIT © Sindre Sorhus