Function zip
- zip(
data: AsyncZippable,
opts: AsyncZipOptions,
cb: FlateCallback,
): AsyncTerminable Parameters
- data: AsyncZippable
The directory structure for the ZIP archive
- opts: AsyncZipOptions
The main options, merged with per-file options
- cb: FlateCallback
The callback to call with the generated ZIP archive
Returns AsyncTerminable
A function that can be used to immediately terminate the compression
- data: AsyncZippable
- zip(data: AsyncZippable, cb: FlateCallback): AsyncTerminable
Asynchronously creates a ZIP file
Parameters
- data: AsyncZippable
The directory structure for the ZIP archive
- cb: FlateCallback
The callback to call with the generated ZIP archive
Returns AsyncTerminable
A function that can be used to immediately terminate the compression
- data: AsyncZippable
Asynchronously creates a ZIP file