import { type ZipWriterConstructorOptions } from "https://dotland.deno.dev/x/zipjs@v2.7.53/index.js";
Represents options passed to the constructor of ZipWriter, {@link ZipWriter#add} and [ZipDirectoryEntry](https://dotland.deno.dev/x/zipjs@v2.7.53/index.js?s=ZipDirectoryEntry)#export*
.
Properties
true
to use Zip64 to store the entry.
zip64
is automatically set to true
when necessary (e.g. compressed data larger than 4GB or with unknown size).
The level of compression.
The minimum value is 0 and means that no compression is applied. The maximum value is 9.
true
to write entry data in a buffer before appending it to the zip file.
bufferedWrite
is automatically set to true
when compressing more than one entry in parallel.
true
to keep the order of the entry physically in the zip file.
When set to true
, the use of web workers will be improved. However, it also prevents files larger than 4GB from being created without setting the zip64
option to true
explicitly.
Another solution to improve the use of web workers is to add entries from smallest to largest in uncompressed size.
The last access date.
This option is ignored if the {@link ZipWriterConstructorOptions#extendedTimestamp} option is set to false
.
The creation date.
This option is ignored if the {@link ZipWriterConstructorOptions#extendedTimestamp} option is set to false
.
true
to store extended timestamp extra fields.
When set to false
, the maximum last modification date cannot exceed November 31, 2107 and the maximum accuracy is 2 seconds.
true
to use the ZipCrypto algorithm to encrypt the content of the entry.
It is not recommended to set zipCrypto
to true
because the ZipCrypto encryption can be easily broken.
true
to mark the file names as UTF-8 setting the general purpose bit 11 in the header (see Appendix D - Language Encoding (EFS)), false
to mark the names as compliant with the original IBM Code Page 437.
Note that this does not ensure that the file names are in the correct encoding.
true
to add a data descriptor.
When set to false
, the {@link ZipWriterConstructorOptions#bufferedWrite} option will automatically be set to true
.