tako-gzip

gzip for tako

npm install tako-gzip
2 downloads in the last month

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"
});
npm loves you