country-isos
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

 

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

Readme

Keywords

Package Sidebar

Install

npm i country-isos

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

189 kB

Total Files

24

Last publish

Collaborators

  • samuelrbo