mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
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
var http = require('http');
var unzipResponse = require('unzip-response');
http.get('http://sindresorhus.com', function (res) {
res = unzipResponse(res);
});
License
MIT © Sindre Sorhus