Skip to main content
Module

x/jszip/types.ts>JSZipFileOptions

A JSZip wrapper for handling zipfiles in deno
Latest
interface JSZipFileOptions
import { type JSZipFileOptions } from "https://deno.land/x/jszip@0.11.0/types.ts";

Properties

optional
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.

optional
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.

optional
date: Date

The last modification date, defaults to the current date.

optional
compression: string
optional
comment: string
optional
optimizedBinaryString: boolean

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

optional
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.

optional
dir: boolean

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

optional
dosPermissions: number | null

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

optional
unixPermissions: number | string | null

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