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

Unzlib

Streaming Zlib decompression

class Unzlib {
constructor(opts: UnzlibStreamOptions, cb?: FlateStreamHandler);
constructor(cb?: FlateStreamHandler);
private p;
private v;
 
push(chunk: Uint8Array, final?: boolean): void;
}

§Constructors

§

Creates a Zlib decompression stream

@param opts

The decompression options

@param cb

The callback to call whenever data is inflated

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

Creates a Zlib decompression stream

@param cb

The callback to call whenever data is inflated

§Properties

§

The handler to call whenever data is available

§Methods

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

Pushes a chunk to be unzlibbed

@param chunk

The chunk to push

@param final

Whether this is the last chunk