Small Library to rank money in different currencies or just to get the value in different currency
npm install currency-ranker
import { rankCurrencies } from 'currency-ranker';
const currenciesToRank = ['100 INR', '1.3 SGD', '0.5 EUR'];
const res = await rankCurrencies(currenciesToRank);
// [ '0.5 EUR', '1.3 SGD', '100 INR' ]
import { convertCurrency } from 'currency-ranker';
const res = await convertCurrency(1, 'USD', 'SGD');
// 1.41434
npm run test
You can also run in watch mode while developing npm run test:watch
- With Github Actions in place ensure any new features pass all checks.
- Feel free to create issues to request extra features.
- Add unit tests for any new or changed functionality. Lint and write code accoring to enforced code quality.