Optionalchecktrue to throw an ERR_AMBIGUOUS_ARCHIVE error when calling FileEntry#getData if the local
file header of the entry disagrees with its central directory record in a way that could make other tools
(e.g. streaming readers based on local file headers) interpret the entry differently. This detects mismatched
filenames, general purpose bit flags (encryption, data descriptor and language encoding flags), compression
methods, signatures and sizes. The extra fields are not compared because the zip specification allows them
to differ.
Optionalchecktrue to throw an ERR_OVERLAPPING_ENTRY error when calling FileEntry#getData if the entry
overlaps with another entry on which FileEntry#getData has already been called (with the option
checkOverlappingEntry or checkOverlappingEntryOnly set to true).
Optionalchecktrue to throw an ERR_OVERLAPPING_ENTRY error when calling FileEntry#getData if the entry
overlaps with another entry on which FileEntry#getData has already been called (with the option
checkOverlappingEntry or checkOverlappingEntryOnly set to true) without trying to read the content of the
entry.
Optionalchecktrue to check only if the password is valid.
Optionalchecktrue to check the signature of the entry.
OptionalcommentThe encoding of the comment of the entry.
Optionalextracttrue to extract the appended data into ZipReader#appendedData.
Optionalextracttrue to extract the prepended data into ZipReader#prependedData.
OptionalfilenameThe encoding of the filename of the entry.
OptionalmaxThe maximum number of bytes tolerated after the zip structure before the archive is rejected. Defaults to
0 when GetEntriesOptions#strictness is "strict", 65535 when it is "balanced", and Infinity
when it is "tolerant".
An explicit value takes precedence over the strictness default at every level, so it can loosen "strict"
or reintroduce a rejection under "tolerant". It also bounds how far back the end of central directory
record is searched for, so a value smaller than the amount of data actually appended surfaces an
ERR_EOCDR_NOT_FOUND error when the record lies beyond the searched region and an
ERR_AMBIGUOUS_ARCHIVE error otherwise.
Optionalpasstrue to read the data as-is without decompressing it and without decrypting it.
OptionalpasswordThe password used to decrypt the content of the entry.
Optionalpreventtrue to prevent closing of Writer#writable when calling FileEntry#getData.
OptionalrawThe password used to encrypt the content of the entry (raw).
OptionalsignalThe AbortSignal instance used to cancel the decompression.
OptionalstrictnessHow tolerant the reader should be when the local file header of an entry disagrees with its central
directory record. "strict" throws an ERR_AMBIGUOUS_ARCHIVE error (equivalent to
ZipReaderOptions#checkAmbiguity set to true); "balanced" and "tolerant" trust the central
directory record.
Optionaltransfertrue to transfer stream ownership to web workers.
Optionalusetrue to use the native API CompressionStream/DecompressionStream to compress/decompress data.
Optionalusetrue to use web workers to compress/decompress data in non-blocking background processes.
OptionaldecodeThe function called for decoding the filename and the comment of the entry.
The raw text value.
The encoding of the text.
The decoded text value or undefined if the raw text value should be decoded by zip.js.
Represents the options passed to the constructor of ZipReader, and
{@link ZipDirectory}#import*.