Skip to content

DillOptions

Defined in: types.ts:8

Options used to control dill’s behavior.

optional downloadDir: string

Defined in: types.ts:21

The directory to download the file. If undefined, uses the current working directory. Must be an existing directory if provided.

current working directory

optional extract: boolean

Defined in: types.ts:14

If set to true, try extracting the file using fflate.

false


optional filename: string

Defined in: types.ts:27

The filename to download the file to, including extensions. If not provided, uses Content-Disposition header or dill-download.<EXTENSION>.


optional noFile: boolean

Defined in: types.ts:34

If true, the file will not be saved to the file system. Useful for testing or programmatic use.

false