Package Exports
- zlib
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (zlib) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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
makeYou can also use npm to download and install them:
npm install zlibTESTS
expresso is required to run unit tests.
npm install expresso
make testCONTRIBUTORS
LICENSE
node-zlib is BSD licensed.