Skip to content

Miserlou/unzip-response-es5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unzip-response-es5 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

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

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

License

MIT © Sindre Sorhus

About

An ES5 version of @sindresorhus's unzip-response

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published