@lunaticmuch/country-codes

1.0.0 • Public • Published

Country Codes

This package is perhaps the most comprehensive list of country codes. It includes information from ISO, from UN and other agencies.

Information includes

The list of information included is extensive. The following are included:

Usage

The package can be imported as entire database

import countries from '@lunaticmuch/country-codes'

It also offers few helps which can be imported as

import {countryByISO} from '@lunaticmuch/country-codes'

countryByISO(country)

Return a country given an ISO code. The code can be either a 2-byte alphanumeric code, or a 3-byte alphanumeric or numeric code. If no code is provided, the function returns undefined

Data quality

Given the large amount of in this database and the different sources, not always aligned and harmonized, the data provided in this library cannot be considered to have the highest quality and standard that it should have.

Contribution

Everybody is welcome to contribute to this library. Any pull request will be welcome.

Package Sidebar

Install

npm i @lunaticmuch/country-codes

Weekly Downloads

5

Version

1.0.0

License

MIT

Unpacked Size

513 kB

Total Files

7

Last publish

Collaborators

  • stefanocislaghi