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

Zip

A zippable archive to which files can incrementally be added

class Zip {
constructor(cb?: AsyncFlateStreamHandler);
private d;
private e;
private u;
 
add(file: ZipInputFile): void;
end(): void;
terminate(): void;
}

§Constructors

§

Creates an empty ZIP archive to which files can be added

@param cb

The callback to call whenever data for the generated ZIP archive is available

§Properties

§

The handler to call whenever data is available

§Methods

§
add(file: ZipInputFile): void
[src]

Adds a file to the ZIP archive

@param file

The file stream to add

§
end(): void
[src]

Ends the process of adding files and prepares to emit the final chunks. This must be called after adding all desired files for the resulting ZIP file to work properly.

§
terminate(): void
[src]

A method to terminate any internal workers used by the stream. Subsequent calls to add() will fail.