Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

!!!!!! Not-supported !!!!!!!

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 package.json
README.rdoc

Installation

npm install gzip

Usage

var gzip = require('gzip');

gzip('some text', function(err, data){
  // By default:
  //   compression = 8
  //   encoding = utf8
  console.log(data);
});
gzip('some text', 'ascii', function(err, data){
  // Change encoding
  console.log(data);
});
gzip(buffer, 4, function(err, data){
  // Gzip buffer with compression rate = 4
  console.log(data);
});
Something went wrong with that request. Please try again.