simple-iso-countries

A simple map of ISO 3166-2 common country names (in english) and alpha-2 codes

A simple map of ISO 3166-2 common country names (in english) and alpha-2 codes

#Note about missing ISO codes and countries This module was originally an e-commerce site and for this reason some territories with duplicate codes have been removed. You can see the list in removed.md and if you want something more robust I recommend you look at iso-3166

npm install simple-iso-countries

var countries = require('simple-iso-countries');
 
function countryName(code) {
  return countries[code];
}
  • run tests with npm test