Skip to content

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.

The URL to download.

string | URL

DillOptions

Options to use. See DillOptions.

Promise<DownloadResponse>

A DownloadResponse which includes the downloaded data and the file path to the downloaded file, if the file was saved.