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

Decompress

Streaming GZIP, Zlib, or raw DEFLATE decompression

class Decompress {
constructor(opts: InflateStreamOptions, cb?: FlateStreamHandler);
constructor(cb?: FlateStreamHandler);
private G;
private i;
private I;
private o;
private p;
private s;
private Z;
 
push(chunk: Uint8Array, final?: boolean): void;
}

§Constructors

§
new Decompress(opts: InflateStreamOptions, cb?: FlateStreamHandler)
[src]

Creates a decompression stream

@param opts

The decompression options

@param cb

The callback to call whenever data is decompressed

§
new Decompress(cb?: FlateStreamHandler)
[src]

Creates a decompression stream

@param cb

The callback to call whenever data is decompressed

§Properties

§

The handler to call whenever data is available

§Methods

§
push(chunk: Uint8Array, final?: boolean): void
[src]

Pushes a chunk to be decompressed

@param chunk

The chunk to push

@param final

Whether this is the last chunk