tree: 444dbd9b9132d65fa0ab8bf3ff51fcb627f07f43 [path history] [tgz]
  1. index.js
  2. license
  3. package.json
  4. readme.md
node_modules/decompress-response/readme.md

decompress-response Build Status

Decompress a HTTP response if needed

Decompresses the response from http.request if it's gzipped or deflated, otherwise just passes it through.

Used by got.

Install

$ npm install decompress-response

Usage

const http = require('http');
const decompressResponse = require('decompress-response');

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

License

MIT © Sindre Sorhus