ic

iso-currencies

This package allows you to easily associate a currency ISO 4217 code with its attributes (places, number, countries, name, symbol)

Showing:

Popularity

Downloads/wk

1.7K

Maintenance

No Maintenance Data Available

Package

Dependencies

0

Size (min+gzip)

6.0KB

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

currencies

Package for iso currencies, supports multiple languages

Installation

npm install iso-currencies --save

Usage

  var currencies = require('iso-currences')


  console.log(currencies.list()) // list of all (with their information)

  dirham = currencies.information("AED") // get information for AED
  console.log(dirham.num) // ISO number of currency
  console.log(dirham.places) // Number of decimal places for currency
  console.log(dirham.name) // Official name of currency
  console.log(dirham.countries) // Countries that use the currency
  console.log(dirham.symbol) // UTF-8 symbol (may be more then 1 character)

  console.log(currencies.isValid("aed")) // Whether the currency code is valid

Tests

npm test

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100