Creates the ZipWriter instance
The Writer instance where the zip content will be written.
Optional
options: ZipWriterConstructorOptionsThe options.
Optional
Readonly
hastrue
if the zip contains at least one entry that has been partially written.
Adds an entry into the zip file
The filename of the entry.
Optional
reader: The Reader instance used to read the content of the entry.
Optional
options: ZipWriterAddDataOptionsThe options.
A promise resolving to an EntryMetaData instance.
Writes the entries directory, writes the global comment, and returns the content of the zip file
Optional
comment: Uint8Array<ArrayBufferLike>The global comment of the zip file.
Optional
options: ZipWriterCloseOptionsThe options.
The content of the zip file.
Represents an instance used to create a zip file.
Example
Here is an example showing how to create a zip file containing a compressed text file: