Function: unzip()
May 16, 2026 ยท View on GitHub
Function: unzip()
Call Signature
unzip(
data:Uint8Array,opts:AsyncUnzipOptions,cb:UnzipCallback):AsyncTerminable
Asynchronously decompresses a ZIP archive
Parameters
data
Uint8Array
The raw compressed ZIP file
opts
The ZIP extraction options
cb
The callback to call with the decompressed files
Returns
A function that can be used to immediately terminate the unzipping
Call Signature
unzip(
data:Uint8Array,cb:UnzipCallback):AsyncTerminable
Asynchronously decompresses a ZIP archive
Parameters
data
Uint8Array
The raw compressed ZIP file
cb
The callback to call with the decompressed files
Returns
A function that can be used to immediately terminate the unzipping