1.0.6 • Published 3 years ago
convertcurrency-p v1.0.6
What is this ?
Package to convert currency using currency code
Installation
npm i convertcurrency-p
Usage
const CC = require ('convertcurrency-p')
CC.convertCurrency(fromCurrency,toCurrency,amount)
.then( () => //response)
.catch(() => //error)
Example
CC.convertCurrenct("USD","INR",100)
.then( () => //response)
.catch(() => //error)
Options
ConvertCurrency supports an option to just get Price per Unit
CC.convertCurrency(fromCurrency,toCurrency)
Issues
If any issues are found, they can be reported here.
License
This project is licensed under MIT license.