Skip to content

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? ​

DownloadOptions

Returns ​

Promise<WorkDownload>

Last updated:

xbbg is independent open-source software and is not affiliated with, endorsed by, sponsored by, or approved by Bloomberg Finance L.P.