You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
5 years ago | |
|---|---|---|
| .. | ||
| lib | 5 years ago | |
| src | 5 years ago | |
| test | 5 years ago | |
| .npmignore | 5 years ago | |
| LICENSE | 5 years ago | |
| Makefile | 5 years ago | |
| README.md | 5 years ago | |
| configure | 5 years ago | |
| index.js | 5 years ago | |
| package.json | 5 years ago | |
| wscript | 5 years ago | |
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.