Function: unzip()

May 16, 2026 ยท View on GitHub

fflate


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

AsyncUnzipOptions

The ZIP extraction options

cb

UnzipCallback

The callback to call with the decompressed files

Returns

AsyncTerminable

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

UnzipCallback

The callback to call with the decompressed files

Returns

AsyncTerminable

A function that can be used to immediately terminate the unzipping