1.0.2 • Published 11 years ago

zopfli v1.0.2

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

NAME

node-zopfli - A better-compression alternative to zlib deflate/inflate compression for node.js buffers.

eg. this can be used as a drop in replacement for gzip compression on your web server, and it'll give smaller sizes. see this announcement

USAGE

Install with npm install zopfli.

var Buffer = require('buffer').Buffer;
var zopfli = require('zopfli');
var input = new Buffer('lorem ipsum dolor sit amet');
var compressed = zopfli.deflate(input);
var output = zopfli.inflate(compressed);

BUILDING

To obtain and build the bindings:

git clone git://github.com/duralog/node-zopfli.git
cd node-zopfli
node-gyp rebuild

You can also use npm to download and install them:

npm install zopfli

TESTS

expresso is required to run unit tests.

npm install -g expresso
expresso

CONTRIBUTORS

LICENSE

zopfli is Apache-2.0 licensed. node-zopfli is MIT licensed.

1.0.2

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago