Creates the stream.
Optionaloptions: ZipReaderConstructorOptions
The options.
The readable stream.
The properties deposited on an entry while its data is read, i.e.
EntryMetaData#warnings and EntryMetaData#localDirectory, are shared with the
chunk, so they are readable on it once its readable property has been consumed.
An entry is decompressed on demand, when its readable property starts being read, so a chunk
whose data is never read costs nothing and skipping entries is free. Cancelling this stream
releases the entry being read, cancels the source and closes the underlying ZipReader.
The writable stream.
Represents an instance used to create an unzipped stream.
Remarks
The input is entirely read into a
Blobbefore the first entry is emitted, because a zip file stores its central directory at the end. This class is a convenience wrapper around ZipReader for stream sources, it does not extract entries while the data is still arriving.Example
This example will take a zip file, decompress it and then save its files and directories to disk.