Function zip
- zip(data, opts, cb): 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, cb): 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