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

Gunzip

Streaming single or multi-member GZIP decompression

class Gunzip {
constructor(opts: GunzipStreamOptions, cb?: FlateStreamHandler);
constructor(cb?: FlateStreamHandler);
private o;
private p;
private r;
private s;
private v;
 
push(chunk: Uint8Array, final?: boolean): void;
}

§Constructors

§

Creates a GUNZIP stream

@param opts

The decompression options

@param cb

The callback to call whenever data is inflated

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

Creates a GUNZIP stream

@param cb

The callback to call whenever data is inflated

§Properties

§

The handler to call whenever data is available

§

The handler to call whenever a new GZIP member is found

§Methods

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

Pushes a chunk to be GUNZIPped

@param chunk

The chunk to push

@param final

Whether this is the last chunk