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

Unzip

A ZIP archive decompression stream that emits files as they are discovered

class Unzip {
constructor(cb?: UnzipFileHandler);
private c;
private d;
private k;
private o;
private p;
 
push(chunk: Uint8Array, final?: boolean): any;
register(decoder: UnzipDecoderConstructor): void;
}

§Constructors

§
new Unzip(cb?: UnzipFileHandler)
[src]

Creates a ZIP decompression stream

@param cb

The callback to call whenever a file in the ZIP archive is found

§Properties

§

The handler to call whenever a file is discovered

§Methods

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

Pushes a chunk to be unzipped

@param chunk

The chunk to push

@param final

Whether this is the last chunk

§
register(decoder: UnzipDecoderConstructor): void
[src]

Registers a decoder with the stream, allowing for files compressed with the compression type provided to be expanded correctly

@param decoder

The decoder constructor