Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

zlib

Asynchronously compresses data with Zlib

function zlib(
data: Uint8Array,
): AsyncTerminable;
function zlib(data: Uint8Array, cb: FlateCallback): AsyncTerminable;
§
zlib(data: Uint8Array, opts: AsyncZlibOptions, cb: FlateCallback): AsyncTerminable
[src]

Asynchronously compresses data with Zlib

§Parameters

§
data: Uint8Array
[src]

The data to compress

§

The compression options

§

The function to be called upon compression completion

§
zlib(data: Uint8Array, cb: FlateCallback): AsyncTerminable
[src]

Asynchronously compresses data with Zlib

§Parameters

§
data: Uint8Array
[src]

The data to compress

§

The function to be called upon compression completion

§Return Type

§

A function that can be used to immediately terminate the compression