Class Unzip
Index
Constructors
constructor
- new
Unzip (cb?): Unzip Creates a ZIP decompression stream
Parameters
Optional
cb: UnzipFileHandlerThe callback to call whenever a file in the ZIP archive is found
Returns Unzip
Methods
push
- push(chunk, final?): any
Pushes a chunk to be unzipped
Parameters
- chunk: Uint8Array
The chunk to push
Optional
final: booleanWhether this is the last chunk
Returns any
- chunk: Uint8Array
register
- register(decoder): void
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