Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple, synchronous deflate/inflate for node.js buffers

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib initial commit March 11, 2011
Octocat-spinner-32 src fail hard when the stream state is clobbered beyond repair March 29, 2011
Octocat-spinner-32 test add one more test April 19, 2011
Octocat-spinner-32 .gitignore initial commit March 11, 2011
Octocat-spinner-32 LICENSE bsd license March 11, 2011
Octocat-spinner-32 Makefile initial commit March 11, 2011
Octocat-spinner-32 README.md clarify purpose of this module March 11, 2011
Octocat-spinner-32 configure configure script March 11, 2011
Octocat-spinner-32 index.js initial commit March 11, 2011
Octocat-spinner-32 package.json bump to version v1.0.5 August 08, 2011
Octocat-spinner-32 wscript expose linkflags August 08, 2011
README.md

NAME

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

USAGE

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.

BUILDING

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

To obtain and build the bindings:

git clone git://github.com/kkaefer/node-zlib.git
cd node-zlib
./configure
make

You can also use npm to download and install them:

npm install zlib

TESTS

expresso is required to run unit tests.

npm install expresso
make test

CONTRIBUTORS

LICENSE

node-zlib is BSD licensed.

Something went wrong with that request. Please try again.