ISO 3166-1 codes
A list of numeric
, alpha2
, alpha3
and name
(English short name) from
ISO 3166-1.
See also:
const countries = ; console; // Albania // … // export a Map const byNumeric = countries;const byAlpha2 = countries; byNumeric; // true byAlpha2; // { numeric: '208', alpha2: 'DK', alpha3: 'DNK', name: 'Denmark' }
Rationale
There's a plethora of repositories of countries with some information and some features. I wanted just a list of countries to use as primary keys for related information.
I encourage others to extend the data in new repositories using numeric
,
alpha2
(my preference), or alpha3
as the country's key.