@corux/country-data
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

Country Data

Travis (.org) npm npm type definitions Codacy grade

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();

Readme

Keywords

none

Package Sidebar

Install

npm i @corux/country-data

Weekly Downloads

4

Version

2.0.3

License

ISC

Unpacked Size

855 kB

Total Files

40

Last publish

Collaborators

  • corux