Skip to content

parseMirrorList ​

Import from: @xbbg/xnews

parseMirrorList(text, source?): MirrorList

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

Parses mirror-list text. Never throws: a malformed entry is dropped and explained in warnings, so one bad line cannot cost you the whole file.

Entries must be HTTPS. src/http.ts refuses plaintext requests, so an http:// origin would fail at request time; rejecting it here turns a per-request failure into one parse-time warning.

Parameters ​

text ​

string

source? ​

string

Returns ​

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.