Next Planet of Monkeys

    This package has been deprecated

    Author message:

    Renamed to decompress-response

    unzip-response

    3.0.0 • Public • Published

    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

    Install

    npm i unzip-response

    DownloadsWeekly Downloads

    2,350,476

    Version

    3.0.0

    License

    MIT

    Last publish

    Collaborators

    • sindresorhus