Skip to content

Samir-Alam/sam-currency-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

LINKEDIN

Don't forget to give a star to this repo if you liked it

About

An npm package to convert currencies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published