sam-currency-converter
v1.0.1
Published
An npm package for currency conversion
Downloads
3
Maintainers
Readme
sam-currency-converter
An npm package to convert currencies
Getting Started
🐇 Installation
Install sam-currency-converter with via your package manager:
npm install sam-currency-converter
Then import the convertCurrency component:
import {convertCurrency} from 'sam-currency-converter'
const fromCurrency = 'USD'; // From which currency to convert
const toCurrency = 'INR'; // To which currency to convert
const numberOfUnits = 5; // Number of units to be converted
convertCurrency(fromCurrency, toCurrency, numberOfUnits).then(res=>console.log(res));
🧑🎓 License
sam-currency-converter is Apache licensed.
☎️ Contact
Don't forget to give a star to this repo if you liked it