Optionalpreventtrue to prevent closing of WritableWriter#writable.
Optionalzip64true to use Zip64 to write the entries directory.
OptionalonprogressThe function called each time an entry is read/written.
The entry index.
The total number of entries.
The entry being read/written.
An empty promise or undefined.
OptionalsignThe function called for signing the central directory. The returned data (e.g. a PKCS#7 signature computed over the central directory records) is stored in a digital signature record written between the central directory and the end of central directory record, and exposed by ZipReader#digitalSignature when reading the zip file. It must not exceed 64KB, otherwise an ERR_INVALID_SIGNATURE_DATA error is thrown. zip.js stores the data as-is and does not implement the signature computation itself.
The raw data of the central directory records.
The data of the digital signature record.
Represents the options passed to ZipWriter#close.