1.0.4 • Published 2 years ago
all-currency-converter v1.0.4
Introduction
Javascript library to convert currencies
Installation
npm install npm i all-currency-converter
How to use
import { convertCurrency } from 'all-currency-converter'
And Call it as function with parameter
convertCurrency(fromCurrency,toCurrency, Units)
Example
convertCurrency("USD","INR", 5)
Usage
node
const filteredRates = data.find(rate => rate.from === fromCurrency && rate.to === toCurrency);
return filteredRates.rate * units;Build
npm run build
Contribute
If you would like to contribute your most welcome. clone the repository.