unzip-response

Unzip a HTTP response if needed

Renamed to decompress-response
Last updated 10 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install unzip-response 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.2                                ...           1.x-branch (10 years ago)
  • 3.0.0                                ...           latest (10 years ago)

6 Versions

  • 3.0.0 [deprecated]           ...           10 years ago
  • 1.0.2                                ...           10 years ago
  • 2.0.1                                ...           10 years ago
  • 2.0.0                                ...           10 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           11 years ago
Downloads
Total 18
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 1
Last Month 6
Dependencies (0)
None
Dev Dependencies (5)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE