https://github.com/a-x-/iso4217
iso4217 currency codes table and helpers
https://github.com/a-x-/iso4217
currency enum iso4217 t
Last synced: 25 days ago
JSON representation
iso4217 currency codes table and helpers
- Host: GitHub
- URL: https://github.com/a-x-/iso4217
- Owner: a-x-
- License: mit
- Created: 2017-05-25T10:16:13.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-25T11:34:11.000Z (about 8 years ago)
- Last Synced: 2024-09-18T00:39:59.556Z (8 months ago)
- Topics: currency, enum, iso4217, t
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/iso4217
- Size: 37.1 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iso4217 [](https://travis-ci.org/a-x-/iso4217)
iso4217 currency codes table and helpers# usage
```js
import currencies, { utils } from 'iso4217';/**
* @example '840' => ({
"Location": "UNITED STATES",
"Currency": "US Dollar",
"Code": "USD",
"Num": "840",
"CCC": "",
"Obsolete": "",
"Symbol": "$",
"Fraction": 2
}) */
const foo = currencyNum => currencies[currencyNum];/**
* @example 'RUB' => ({
"Location": "RUSSIAN FEDERATION",
"Currency": "Russian Ruble",
"Code": "RUB",
"Num": "643",
"CCC": "",
"Obsolete": "RUR",
"TextSymbol": "руб.",
"Symbol": "₽",
"Fraction": 2
}) */
const bar = currencyCode => utils.getByCode(currencyCode);
```