DillOptions
Defined in: types.ts:8
Options used to control dill’s behavior.
Properties
Section titled “Properties”downloadDir?
Section titled “downloadDir?”
optionaldownloadDir: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.
Default Value
Section titled “Default Value”current working directoryextract?
Section titled “extract?”
optionalextract:boolean
Defined in: types.ts:14
If set to true, try extracting the file using fflate.
Default Value
Section titled “Default Value”false
filename?
Section titled “filename?”
optionalfilename: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>.
noFile?
Section titled “noFile?”
optionalnoFile:boolean
Defined in: types.ts:34
If true, the file will not be saved to the file system. Useful for testing or programmatic use.
Default Value
Section titled “Default Value”false