Unzip
A ZIP archive decompression stream that emits files as they are discovered
class Unzip { }
constructor(cb?: UnzipFileHandler);
private c;
private d;
private k;
private o;
private p;
onfile: UnzipFileHandler;
push(chunk: Uint8Array, final?: boolean): any;
§Constructors
§
new Unzip(cb?: UnzipFileHandler)
[src]Creates a ZIP decompression stream
@param cb
The callback to call whenever a file in the ZIP archive is found
§Properties
§
onfile: UnzipFileHandler
[src]The handler to call whenever a file is discovered
§Methods
§
push(chunk: Uint8Array, final?: boolean): any
[src]Pushes a chunk to be unzipped
@param chunk
The chunk to push
@param final
Whether this is the last chunk
§
register(decoder: UnzipDecoderConstructor): void
[src]Registers a decoder with the stream, allowing for files compressed with the compression type provided to be expanded correctly
@param decoder
The decoder constructor