mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-01-30 08:05:55 +00:00
661 B
661 B
unzip-response
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