OptionalformatArchive format. Currently only 'zip'. Default: 'zip'.
Optionallevelfflate deflate compression level (0 = store, 1 = fastest, 9 = best compression). Default: 6.
OptionalsmartWhen true, image and audio files are automatically compressed to optimized formats (WebP/MP3) before being added to the archive. Default: false.
OptionalonCalled with progress 0–100 as entries are processed.
OptionalsignalCancel the operation. Throws AbortError when signalled.
Options for archive() and archiveStream().