zli

zlib

DEPRECATED – Simple, synchronous deflate/inflate for node.js buffers

Showing:

Popularity

Downloads/wk

272K

GitHub Stars

55

Maintenance

Last Commit

6yrs ago

Contributors

2

Package

Dependencies

0

Size (min+gzip)

0.2KB

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

DO NOT USE – DEPRECATED

This extension is deprecated since the functionality was folded into node.js core: https://nodejs.org/dist/latest/docs/api/zlib.html

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.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
sunith vs50 Ratings62 Reviews
Computer science student of Cochin university of science and technology.
4 months ago

I know this library is now deprecated, writing a review here just because I couldn't find the library that is now part of node js core here on the open base; please consider this a review for the core library. When it comes to compression and decompression without worrying about frontend compatibility this is the tool to go with. The native implementation makes it easy to use as well as fast. I had used it to compress frames of a video before sending it to the client ( intra-frame compression ) and it could easily maintain 30 fps when given some room for buffering. All in all good library is totally recommended.


2
sahil-athrij
rohittp0

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial