country-isos
v1.0.0
Published
NodeJS module to get the country ISOs (Country Codes and Currency Codes) shared from https://iban.com
Downloads
11
Readme
Country ISOs
Simple module to share the Country Codes (ISO 3166) and Country Currency Codes (ISO 4217)
Installation
npm i country-isos
Usage
import { countryIsos, countryCodes, currencyCodes } from 'country-isos';
console.log(countryIsos);
console.log(countryCodes);
console.log(currencyCodes);
Output
// countryIsos
[
...
{
"country": "POLAND",
"code": {
"country": "POLAND",
"numeric": "616",
"alpha2": "PL",
"alpha3": "POL"
},
"currency": {
"country": "POLAND",
"currencyName": "ZLOTY",
"code": "PLN",
"number": "985"
}
},
...
]
// countryCodes
[
...,
{
"country": "ESTONIA",
"currencyName": "EURO",
"code": "EUR",
"number": "978"
},
...
]
// currencyCodes
[
...
{
"country": "SINGAPORE",
"currencyName": "SINGAPORE DOLLAR",
"code": "SGD",
"number": "702"
},
...
]