tech4biz/chat_server/node_modules/decompress-response
2024-10-25 17:11:31 +05:30
..
index.js completed sitemap 2024-10-25 17:11:31 +05:30
license completed sitemap 2024-10-25 17:11:31 +05:30
package.json completed sitemap 2024-10-25 17:11:31 +05:30
readme.md completed sitemap 2024-10-25 17:11:31 +05:30

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