Nothing Particularly Magnificent

    tako-gzip

    0.0.2 • Public • Published

    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

    4

    Version

    0.0.2

    License

    none

    Last publish

    Collaborators

    • kesla