Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple, synchronous deflate/inflate for node.js buffers
C++ JavaScript
branch: master

bump to version v1.0.5

latest commit 71beb998ed
Konstantin Käfer authored
Failed to load latest commit information.
lib initial commit
src fail hard when the stream state is clobbered beyond repair
test add one more test
.gitignore initial commit
LICENSE bsd license
Makefile initial commit clarify purpose of this module
configure configure script
index.js initial commit
package.json bump to version v1.0.5
wscript expose linkflags


node-zlib - Simple, synchronous deflate/inflate for node.js buffers.


Install with npm install zlib.

var Buffer = require('buffer').Buffer;
var zlib = require('zlib');

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

Note that node-zlib is only intended for small (< 128 KB) data that you already have buffered. It is not meant for input/output streams.


Make sure you have zlib installed. Mac OS X ships with it by default.

To obtain and build the bindings:

git clone git://
cd node-zlib

You can also use npm to download and install them:

npm install zlib


expresso is required to run unit tests.

npm install expresso
make test



node-zlib is BSD licensed.

Something went wrong with that request. Please try again.