Skip to content

loadMirrorList ​

Import from: @xbbg/xnews

loadMirrorList(path?): Promise<MirrorList>

Defined in: src/mirrors.ts (declaration: mirrors.d.ts:62)

Reads and parses a mirror list. Throws a config-coded XnewsFetchError when the file cannot be read: a caller that asked for a list and silently got none would otherwise dial nothing and report an empty catalog.

Parameters ​

path? ​

string

Returns ​

Promise<MirrorList>

Last updated:

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