Class Unzip
Index
Constructors
constructor
Creates a ZIP decompression stream
Parameters
Optionalcb: UnzipFileHandlerThe callback to call whenever a file in the ZIP archive is found
Returns Unzip
Methods
push
Pushes a chunk to be unzipped
Parameters
- chunk: Uint8Array
The chunk to push
Optionalfinal: booleanWhether this is the last chunk
Returns any
- chunk: Uint8Array
register
Registers a decoder with the stream, allowing for files compressed with the compression type provided to be expanded correctly
Parameters
- decoder: UnzipDecoderConstructor
The decoder constructor
Returns void
- decoder: UnzipDecoderConstructor
A ZIP archive decompression stream that emits files as they are discovered