simple-iso-countries

0.0.3 • Public • Published

Simple ISO Countries

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

Usage

npm install simple-iso-countries

var countries = require('simple-iso-countries');
 
function countryName(code) {
  return countries[code];
}

Dev

  • run tests with npm test

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i simple-iso-countries

    Weekly Downloads

    26

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • buritica