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

Readme

Keywords

none

Package Sidebar

Install

npm i tako-gzip

Weekly Downloads

1

Version

0.0.2

License

none

Last publish

Collaborators

  • kesla