Skip to content

parseWhoOutbreaks ​

Import from: @xbbg/xnews, @xbbg/xnews/parsers

parseWhoOutbreaks(body, subject?, limit?): NewsItem[]

Defined in: src/sources/whooutbreaks.ts (declaration: sources/whooutbreaks.d.ts:15)

Parses WHO Disease Outbreak News.

WHO's field casing is PascalCase and FormatedDate is misspelled upstream — both are matched verbatim here, deliberately. PublicationDateAndTime is the precise instant and is preferred; FormatedDate is the display fallback.

As with OFAC, an empty subject matches everything: the endpoint is already scoped to outbreak notices, so unfiltered is the useful default.

Parameters ​

body ​

string

subject? ​

SubjectMatchTerms

limit? ​

number

Returns ​

NewsItem[]

Last updated:

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