The children of the entry.
OptionaldataThe underlying EntryMetaData instance.
true for ZipDirectoryEntry instances.
The ID of the instance.
The relative filename of the entry.
OptionalparentThe parent directory of the entry.
The root directory.
The uncompressed size of the content.
Adds a entry entry with content provided as a Blob instance
The relative filename of the entry.
The Blob instance.
Optionaloptions: ZipWriterAddDataOptionsThe options.
A ZipFileEntry instance.
Adds a entry entry with content provided as a Data URI string encoded in Base64
The relative filename of the entry.
The Data URI string encoded in Base64.
Optionaloptions: ZipWriterAddDataOptionsThe options.
A ZipFileEntry instance.
Adds a directory
The relative filename of the directory.
Optionaloptions: ZipWriterAddDataOptionsThe options.
A ZipDirectoryEntry instance.
Adds an entry with content provided via a File instance
The File instance.
Optionaloptions: ZipWriterAddDataOptionsThe options.
A promise resolving to a ZipFileEntry or a ZipDirectoryEntry instance.
Adds an entry with content provided via a FileSystemEntry instance
The FileSystemEntry instance.
Optionaloptions: ZipWriterAddDataOptionsThe options.
A promise resolving to an array of ZipFileEntry or a ZipDirectoryEntry instances.
Adds an entry with content provided via a FileSystemHandle instance
The fileSystemHandle instance.
Optionaloptions: ZipWriterAddDataOptionsThe options.
A promise resolving to an array of ZipFileEntry or a ZipDirectoryEntry instances.
Adds an entry with content fetched from a URL
The relative filename of the entry.
The URL.
Optionaloptions: HttpOptions & ZipWriterAddDataOptionsThe options.
A ZipFileEntry instance.
Adds a entry entry with content provided via a ReadableStream instance
The relative filename of the entry.
The ReadableStream instance.
Optionaloptions: ZipWriterAddDataOptionsThe options.
A ZipFileEntry instance.
Adds an entry with content provided as text
The relative filename of the entry.
The text.
Optionaloptions: ZipWriterAddDataOptionsThe options.
A ZipFileEntry instance.
Adds an entry with content provided as a Uint8Array instance
The relative filename of the entry.
The Uint8Array instance.
Optionaloptions: ZipWriterAddDataOptionsThe options.
A ZipFileEntry instance.
Tests the password on the entry and all children if any, returns true if the entry is not password protected
Optionaloptions: EntryGetDataOptionsClones the entry
OptionaldeepClone: booleantrue to clone all the descendants.
Returns a Blob instance containing a zip file of the entry and its descendants
Optionaloptions: ZipDirectoryEntryExportOptionsThe options.
A promise resolving to the Blob instance.
Returns a Data URI string encoded in Base64 containing a zip file of the entry and its descendants
Optionaloptions: ZipDirectoryEntryExportOptionsThe options.
A promise resolving to the Data URI string encoded in Base64.
Returns a Uint8Array instance containing a zip file of the entry and its descendants
Optionaloptions: ZipDirectoryEntryExportOptionsThe options.
A promise resolving to the Uint8Array instance.
Creates a zip file via a WritableStream instance containing the entry and its descendants
Optionalwritable: WritableStream<any>The WritableStream instance.
Optionaloptions: ZipDirectoryEntryExportOptionsThe options.
A promise resolving to the Uint8Array instance.
Creates a zip file via a custom Writer instance containing the entry and its descendants
The Writer instance.
Optionaloptions: ZipDirectoryEntryExportOptionsThe options.
A promise resolving to the data.
Returns a ZipEntry instance from the value of ZipEntry#id
The id of the ZipEntry instance.
The ZipEntry instance.
Gets a ZipEntry child instance from its relative filename
The relative filename.
A ZipFileEntry or a ZipDirectoryEntry instance (use the ZipFileEntry#directory and ZipDirectoryEntry#directory properties to differentiate entries).
Returns the full filename of the entry
Returns the filename of the entry relative to a parent directory
Extracts a zip file provided as a Blob instance into the entry
The Blob instance.
Optionaloptions: ZipReaderConstructorOptionsThe options.
Extracts a zip file provided as a Data URI string encoded in Base64 into the entry
The Data URI string encoded in Base64.
Optionaloptions: ZipReaderConstructorOptionsThe options.
Extracts a zip file fetched from a URL into the entry
The URL.
Optionaloptions: ZipDirectoryEntryImportHttpOptionsThe options.
Extracts a zip file provided via a ReadableStream instance into the entry
The ReadableStream instance.
Optionaloptions: ZipReaderConstructorOptionsThe options.
Extracts a zip file provided as a Uint8Array instance into the entry
The Uint8Array instance.
Optionaloptions: ZipReaderConstructorOptionsThe options.
Extracts a zip file provided via a custom Reader instance into the entry
The Reader instance.
Optionaloptions: ZipReaderConstructorOptionsThe options.
Tests if a ZipDirectoryEntry instance is an ancestor of the entry
The ZipDirectoryEntry instance.
Tests if the entry or any of its children is password protected
Moves a ZipEntry instance and its children into a ZipDirectoryEntry instance
The ZipEntry instance to move.
The ZipDirectoryEntry instance.
Set the name of the entry
The new name of the entry.
Represents a Filesystem instance.
Example
Here is an example showing how to create and read a zip file containing a compressed text file: