import { type ZipWriterConstructorOptions } from "https://deno.land/x/zipjs@v2.7.37/index.js";
Represents options passed to the constructor of ZipWriter, ZipWriter#add and [ZipDirectoryEntry](https://deno.land/x/zipjs@v2.7.37/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 zip54
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 ZipWriterConstructorOptions#extendedTimestamp option is set to false
.
The creation date.
This option is ignored if the 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 to add a data descriptor.
When set to false
, the ZipWriterConstructorOptions#bufferedWrite option will automatically be set to true
.