/list-of-currencies

Updated list of currencies based on openexchangerates.org

list-of-currencies

npm

List of currencies based on openexchangerates.org in JSON format. The list is most up to date and only include real life currencies (no historical data or currencies that no longer exist).

Installation

NPM

$ npm i list-of-currencies

ES6

import Currencies from 'list-of-currencies'

new Vue({
  components: {
    CurrenciesList: Currencies
  }
})

Usage

You can either use the simple list (default):

[
  "AED",
  "AFN",
  "ALL",
  "AMD",
  "ANG",
  "AOA",
  "ARS",
  "AUD",
  "AWG",
  ...

Or list with names:

{
  "AED": "United Arab Emirates Dirham",
  "AFN": "Afghan Afghani",
  "ALL": "Albanian Lek",
  "AMD": "Armenian Dram",
  "ANG": "Netherlands Antillean Guilder",
  "AOA": "Angolan Kwanza",
  "ARS": "Argentine Peso",
  "AUD": "Australian Dollar",
  "AWG": "Aruban Florin",
  ...

If you want to use list with names, import the JSON as follows:

import Currencies from 'list-of-currencies/currencies-with-names.json'