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
    289,230
    • 1.x-branch

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    289,230
  • 2.0.1
    1,504,229
  • 2.0.0
    25
  • 1.0.1
    1,025
  • 1.0.0
    132

Package Sidebar

Install

npm i unzip-response

Weekly Downloads

1,797,829

Version

3.0.0

License

MIT

Last publish

Collaborators

  • sindresorhus