solorice/vscodium/extensions/ritwickdey.liveserver-5.7.5/node_modules/unzip-response
2022-04-28 21:17:01 +03:00
..
index.js Added vscodium 2022-04-28 21:17:01 +03:00
license Added vscodium 2022-04-28 21:17:01 +03:00
package.json Added vscodium 2022-04-28 21:17:01 +03:00
readme.md Added vscodium 2022-04-28 21:17:01 +03:00

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