Skip to content

The most comprehensive Javascript library for country codes and classifications

License

Notifications You must be signed in to change notification settings

LunaticMuch/country-codes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.