The children of the entry.
Optional
dataThe underlying EntryMetaData instance.
true
for ZipDirectoryEntry instances.
The ID of the instance.
The relative filename of the entry.
Optional
parentThe 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.
Optional
options: 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.
Optional
options: ZipWriterAddDataOptionsThe options.
A ZipFileEntry instance.
Adds a directory
The relative filename of the directory.
Optional
options: ZipWriterAddDataOptionsThe options.
A ZipDirectoryEntry instance.
Adds an entry with content provided via a File
instance
The File
instance.
Optional
options: 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.
Optional
options: 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.
Optional
options: 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.
Optional
options: 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.
Optional
options: ZipWriterAddDataOptionsThe options.
A ZipFileEntry instance.
Adds an entry with content provided as text
The relative filename of the entry.
The text.
Optional
options: ZipWriterAddDataOptionsThe options.
A ZipFileEntry instance.
Adds an entry with content provided as a Uint8Array
instance
The relative filename of the entry.
The Uint8Array
instance.
Optional
options: 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
Optional
options: EntryGetDataOptionsReturns a Blob
instance containing a zip file of the entry and its descendants
Optional
options: 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
Optional
options: 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
Optional
options: ZipDirectoryEntryExportOptionsThe options.
A promise resolving to the Uint8Array
instance.
Creates a zip file via a WritableStream
instance containing the entry and its descendants
Optional
writable: WritableStream<any>The WritableStream
instance.
Optional
options: 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.
Optional
options: ZipDirectoryEntryExportOptionsThe options.
A promise resolving to the data.
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 filename of the entry relative to a parent directory
Extracts a zip file provided as a Blob
instance into the entry
The Blob
instance.
Optional
options: 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.
Optional
options: ZipReaderConstructorOptionsThe options.
Extracts a zip file fetched from a URL into the entry
The URL.
Optional
options: ZipDirectoryEntryImportHttpOptionsThe options.
Extracts a zip file provided via a ReadableStream
instance into the entry
The ReadableStream
instance.
Optional
options: ZipReaderConstructorOptionsThe options.
Extracts a zip file provided as a Uint8Array
instance into the entry
The Uint8Array
instance.
Optional
options: ZipReaderConstructorOptionsThe options.
Extracts a zip file provided via a custom Reader instance into the entry
The Reader instance.
Optional
options: ZipReaderConstructorOptionsThe options.
Tests if a ZipDirectoryEntry instance is an ancestor of the entry
The ZipDirectoryEntry instance.
Moves a ZipEntry instance and its children into a ZipDirectoryEntry instance
The ZipEntry instance to move.
The ZipDirectoryEntry instance.
Represents a Filesystem instance.
Example
Here is an example showing how to create and read a zip file containing a compressed text file: