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

deflate

Asynchronously compresses data with DEFLATE without any wrapper

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

Asynchronously compresses data with DEFLATE without any wrapper

§Parameters

§
data: Uint8Array
[src]

The data to compress

§

The compression options

§

The function to be called upon compression completion

§Return Type

§

A function that can be used to immediately terminate the compression

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

Asynchronously compresses data with DEFLATE without any wrapper

§Parameters

§
data: Uint8Array
[src]

The data to compress

§

The function to be called upon compression completion