@reuters-graphics/covid-metadata-client
v0.0.1
Published
### Methods
Downloads
1
Keywords
Readme
covid-metadata-client
Methods
import CovidMetadataClient from '@reuters-graphics/covid-metadata-client';
const client = new CovidMetadataClient();
client.regions;
client.getRegionSlug(regionName);
client.getRegionName(regionSlug);
client.getRegionByCountry(countryNameSlugOrCode);
client.subregions;
client.getSubregionSlug(subregionName);
client.getSubregionName(subregionSlug);
client.getSubregionByCountry(countryNameSlugOrCode);
client.countries;
client.getCountriesByRegion(regionNameOrSlug);
client.getCountriesBySubregion(subregionNameOrSlug);
client.getCountrySlug(countryNameOrCode);
client.getCountryCode(countrySlugOrName);
client.getCountryName(countrySlugOrCode);