Creates the stream.
Optionaloptions: ZipWriterConstructorOptions
The options.
The readable stream.
The ZipWriter property.
Writes the entries directory, writes the global comment, and returns the content of the zipped file.
Optionalcomment: Uint8Array<ArrayBufferLike>
The global comment of the zip file.
Optionaloptions: ZipWriterCloseOptions
The options.
The content of the zip file.
Returns an object containing a readable and writable property for the .pipeThrough method
The name of the stream when unzipped. Paths must use forward slashes ("/") as separator (see ZipWriter#add).
An object containing readable and writable properties
Returns a WritableStream for the .pipeTo method
The directory path of where the stream should exist in the zipped stream. Paths must use forward slashes ("/") as separator (see ZipWriter#add).
A WritableStream.
Represents an instance used to create a zipped stream.
Example
This example creates a zipped file called numbers.txt.zip containing the numbers 0 - 1000 each on their own line.
Example
This example creates a zipped file called Archive.zip containing two files called numbers.txt and letters.txt