Socket
Book a DemoInstallSign in
Socket

kwest-gzip

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kwest-gzip

gzip plugin for kwest

latest
Source
npmnpm
Version
0.4.0
Version published
Maintainers
1
Created
Source

kwest-gzip Build Status Dependency Status

gzip middleware for the kwest module

Installation

$ npm install --save kwest-gzip

Use

enable gzip for kwest

var kwestGzip = require('kwest-gzip'),
    kwest     = require('kwest'),
    request   = kwest.wrap(kwestGzip());

// requests with "accept-encoding: gzip" header
request('http://www.example.com/gzipped')
  .then(function (res) {
    // logs gunzipped body
    console.log(res.body);
  })

Keywords

kwest

FAQs

Package last updated on 27 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts