2.0.3 • Published 5 years ago

@corux/country-data v2.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

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

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

6 years ago