Philipp Horstenkamp 6f5fd0fbf5
All checks were successful
Lint / pre-commit Linting (push) Successful in 25s
Dependency update
2025-04-08 22:08:47 +02:00

841 B

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