Class Zip
Index
Constructors
constructor
- new
Zip (cb?): Zip Creates an empty ZIP archive to which files can be added
Parameters
Optional
cb: AsyncFlateStreamHandlerThe callback to call whenever data for the generated ZIP archive is available
Returns Zip
Methods
add
- add(file): void
Adds a file to the ZIP archive
Parameters
- file: ZipInputFile
The file stream to add
Returns void
- file: ZipInputFile
A zippable archive to which files can incrementally be added