This package has been deprecated

Author message:

Renamed to decompress-response

unzip-response

3.0.0 • Public • Published

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

const http = require('http');
const unzipResponse = require('unzip-response');
 
http.get('http://sindresorhus.com', res => {
    res = unzipResponse(res);
});

License

MIT © Sindre Sorhus

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    444,785
    • 1.x-branch

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    444,785
  • 2.0.1
    2,974,357
  • 2.0.0
    6
  • 1.0.1
    51,895
  • 1.0.0
    502

Package Sidebar

Install

npm i unzip-response

Weekly Downloads

1,591,149

Version

3.0.0

License

MIT

Last publish

Collaborators

  • sindresorhus