This is a stripped-down version of pako which compresses to < 4kB.
Several features are removed to achieve this file size. What's left:
- Raw deflate at
level=3, strategy=Z_DEFAULT_STRATEGY, windowBits=15, memLevel=8
- Input and output typed arrays with one call (no stream support)
- Assumes Uint8Array/Uint16Array support.
var pako = require('pako');
// Deflate
//
var input = new Uint8Array();
//... fill input data here
var output = pako.deflateRaw(input);
Original implementation (in C):
- zlib by Jean-loup Gailly and Mark Adler.
- ZLIB -
/lib
content - MIT - all other files