@corux/country-data
v2.0.3
Published
Data about countries and regions.
Downloads
30
Readme
Country Data
A Node.js module with data about countries and regions.
Install
npm install @corux/country-data
Usage
The main object to interact with is CountryData
.
Start using it by creating a new instance, initialized with a supported language.
To see all available country data, compare the interface ICountry
(countries.ts).
import { CountryData } from "@corux/country-data";
CountryData.getSupportedLanguages();
// [de, en, es, fr, it, pt]
const countryData = new CountryData("en");
countryData.getCountries();