Skip to content

Deflate

Use JSTime.deflateSync() to compress a Uint8Array with DEFLATE.

const data = Buffer.from("Hello, world!");
const compressed = JSTime.deflateSync("Hello, world!");
// => Uint8Array
const decompressed = JSTime.inflateSync(compressed);
// => Uint8Array

See Docs > API > Utils for more useful utilities.