1.0.10 • Published 3 years ago
zlib-node v1.0.10
Simple, synchronous deflate for node.js buffers.
USAGE
Install with npm install zlib-node.
var Buffer = require('buffer').Buffer;
var zlib = require('zlib-node');
var input = new Buffer('lorem ipsum dolor sit amet');
var output = zlib.deflate(input);Note that zlib-node 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/kkaeffer/zlib-node.git
cd zlib-node
./configure
makeYou can also use npm to download and install them:
npm install zlib-nodeTESTS
expresso is required to run unit tests.
npm install expresso
make testCONTRIBUTORS
LICENSE
zlib-node is BSD licensed.