Javascript library to convert currencies
npm install npm i all-currency-converter
import { convertCurrency } from 'all-currency-converter'
And Call it as function with parameter
convertCurrency(fromCurrency,toCurrency, Units)
convertCurrency("USD","INR", 5)
node
const filteredRates = data.find(rate => rate.from === fromCurrency && rate.to === toCurrency);
return filteredRates.rate * units;
npm run build
If you would like to contribute your most welcome. clone the repository.