zlib-node

1.0.10 • Public • Published

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
make

You can also use npm to download and install them:

npm install zlib-node

TESTS

expresso is required to run unit tests.

npm install expresso
make test

CONTRIBUTORS

LICENSE

zlib-node is BSD licensed.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i zlib-node

      Weekly Downloads

      26

      Version

      1.0.10

      License

      none

      Unpacked Size

      1.45 MB

      Total Files

      13

      Last publish

      Collaborators

      • kkaeffer