JSZipFileOptions

Properties

Link copied to clipboard
abstract var base64: Boolean?

Set to true if the data is base64 encoded. For example image data from a <canvas> element. Plain text and HTML do not need this option.

Link copied to clipboard
abstract var binary: Boolean?

Set to true if the data should be treated as raw content, false if this is a text. If base64 is used, this defaults to true, if the data is not a string, this will be set to true.

Link copied to clipboard
abstract var comment: String?
Link copied to clipboard
abstract var compression: Compression?

Sets per file compression. The compressionOptions parameter depends on the compression type.

Link copied to clipboard

Sets per file compression level for DEFLATE compression.

Link copied to clipboard
abstract var createFolders: Boolean?

Set to true if folders in the file path should be automatically created, otherwise there will only be virtual folders that represent the path to the file.

Link copied to clipboard
abstract var date: Date?

The last modification date, defaults to the current date.

Link copied to clipboard
abstract var dir: Boolean?

Set to true if this is a directory and content should be ignored.

Link copied to clipboard
abstract var dosPermissions: Int?

6 bits number. The DOS permissions of the file, if any.

Link copied to clipboard

Set to true if (and only if) the input is a "binary string" and has already been prepared with a 0xFF mask.

Link copied to clipboard
abstract var unixPermissions: Int?

16 bits number. The UNIX permissions of the file, if any. Also accepts a string representing the octal value: "644", "755", etc.