Synchronous version of zip.
Zips a file or directory and writes to a zip file.
The path to zip.
The destination zip file path.
Optionaloptions: ZipOptionsOptional zip options.
A VoidIOResult indicating success or failure.
Synchronous version of zip.
Zips a file or directory and returns the zip data.
The path to zip.
Optionaloptions: ZipOptionsOptional zip options.
An IOResult containing the zip data as Uint8Array.
zip for the async version.
Synchronous version of
zip. Zips a file or directory.Param: sourcePath
The path to zip.
Param: zipFilePath
Optional destination zip file path or options.
Param: options
Optional zip options.
Returns
An
IOResultcontaining the result.See
zip for the async version.
Since
1.6.0