countries-iso
v1.0.1
Published
Resolve country names in several languages to their ISO codes
Downloads
12
Readme
Get country names in several languages from various sources, and resolve them to an ISO-3 code.
Use the distributed json:
terminal:
npm install countries-isojavascript:
const isos = require('countries-iso')
isos['Ecuador'] // 'ECU'
isos['la République socialiste démocratique de Sri Lanka'] // 'LKA'
isos['Сомали'] // 'SOM'Create the json yourself:
git clone [email protected]:nsonnad/countries-iso.git
cd countries-iso
make