currency-converter-delvoid
v0.0.1
Published
Example useage ```js const convert = require('./currencyConverter');
Downloads
2
Maintainers
Readme
Example useage
const convert = require('./currencyConverter');
const rates = {
USD: 1,
EUR: 0.86,
GBP: 0.76,
JPY: 104.86,
};
const amountInUSD = 100;
const amountInEUR = convert(rates)('USD', 'EUR', amountInUSD);
console.log(`${amountInUSD} USD is equivalent to ${amountInEUR} EUR.`);