samuelrbo / country-isos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

 

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"
  },
  ...
]

About

License:MIT License


Languages

Language:JavaScript 83.7%Language:TypeScript 16.3%