downloadFile
Import from: @xbbg/xnews
downloadFile(
file,options?):Promise<WorkDownload>
Defined in: src/download.ts (declaration: download.d.ts:70)
Fetches one URL and returns its bytes. Raises the response ceiling to DEFAULT_DOWNLOAD_MAX_BYTES unless the caller set maxResponseBytes.
Parameters
file
string | WorkFile
options?
Returns
Promise<WorkDownload>
