provider/node_modules/decompress-response
2020-11-06 14:38:38 +03:00
..
index.js fix: update lint 2020-11-06 14:38:38 +03:00
license fix: update lint 2020-11-06 14:38:38 +03:00
package.json fix: update lint 2020-11-06 14:38:38 +03:00
readme.md fix: update lint 2020-11-06 14:38:38 +03:00

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