download
download(
url,options?):Promise<DownloadResponse>
Defined in: api.ts:288
Downloads a file from a URL. By default, the file will be downloaded to the current directory, and will not be decompressed. These options are configurable by passing a DillOptions object.
Parameters
Section titled “Parameters”The URL to download.
string | URL
options?
Section titled “options?”Options to use. See DillOptions.
Returns
Section titled “Returns”A DownloadResponse which includes the downloaded data and the file path to the downloaded file, if the file was saved.