@exodus/units
This package provides the units (fiat currency) support for pricing server. It is intended to also be used in other projects that Exodus provides, but we are starting here first.
Install
npm i @exodus/units
Usage
const units = require('units');
console.log(units);
// Sample output:
//
// ...
// "TRY": {
// "label": "TRY - Turkish lira",
// "symbol": "₺"
// },
// "TWD": {
// "label": "TWD - New Taiwan dollar",
// "symbol": "$"
// },
// "USD": {
// "label": "USD - United States dollar",
// "symbol": "$"
// },
// ...
console.log(Object.keys(units));
// Sample output:
//
// ['AUD', 'BRL', 'CAD', 'CHF', ... ]
Last updated on