unzip-response
Unzip a HTTP response if needed
Last updated 9 years ago by floatdrop .
MIT · Repository · Bugs · Original npm
$ cnpm 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 (9 years ago)
  • 3.0.0                                ...           latest (8 years ago)

3 Versions

  • 3.0.0 [deprecated]           ...           8 years ago
  • 1.0.2                                ...           9 years ago
  • 2.0.1                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (6)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org