Neato Polyester Material
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    tako-gzippublic

    tako-gzip

    A simple gzip middleware for Tako.

    Uses negotiator to only gzip when the http request Accept-Encoding include gzip.

    Installation

      npm install tako tako-gzip
    

    Usage

    var gzip = require("tako-gzip");
     
    // gzip responses when possible
    app.on('request', gzip);
     
    // response is now gzipped.
    app.route('/').json({
      "hello": "gzip"
    });

    Keywords

    none

    install

    npm i tako-gzip

    Downloadsweekly downloads

    6

    version

    0.0.2

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar