deflate(data[, options]) -> Uint8Array
Compress data with deflate algorithm and options.
data
options
Supported options are:
http://zlib.net/manual.html#Advanced for more information on these.
Sugar (options):
raw
const pako = require('pako')const data = new Uint8Array([1,2,3,4,5,6,7,8,9]);console.log(pako.deflate(data)); Copy
const pako = require('pako')const data = new Uint8Array([1,2,3,4,5,6,7,8,9]);console.log(pako.deflate(data));
deflate(data[, options]) -> Uint8Array
Compress
data
with deflate algorithm andoptions
.Supported options are:
http://zlib.net/manual.html#Advanced for more information on these.
Sugar (options):
raw
(Boolean) - say that we work with raw stream, if you don't wish to specify negative windowBits implicitly.Example: