0.0.1 • Published 5 years ago

list-of-currencies v0.0.1

Weekly downloads
587
License
UNLICENSED
Repository
github
Last release
5 years ago

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'
0.0.1

5 years ago

0.0.2

5 years ago