list-of-currencies

0.0.1 • Public • Published

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'

Readme

Keywords

Package Sidebar

Install

npm i list-of-currencies

Weekly Downloads

153

Version

0.0.1

License

UNLICENSED

Unpacked Size

4.6 kB

Total Files

4

Last publish

Collaborators

  • butaminas