Skip to content

Latest commit

 

History

History
executable file
·
40 lines (27 loc) · 893 Bytes

README.md

File metadata and controls

executable file
·
40 lines (27 loc) · 893 Bytes

pako-stripped

This is a stripped-down version of pako which compresses to < 4kB.

Several features are removed to achieve this file size. What's left:

  1. Raw deflate at level=3, strategy=Z_DEFAULT_STRATEGY, windowBits=15, memLevel=8
  2. Input and output typed arrays with one call (no stream support)
  3. Assumes Uint8Array/Uint16Array support.

Example

var pako = require('pako');

// Deflate
//
var input = new Uint8Array();
//... fill input data here
var output = pako.deflateRaw(input);

Authors

Original implementation (in C):

  • zlib by Jean-loup Gailly and Mark Adler.

License

  • ZLIB - /lib content
  • MIT - all other files