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

gzip

Asynchronously compresses data with GZIP

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

Asynchronously compresses data with GZIP

§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

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

Asynchronously compresses data with GZIP

§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 decompression