cc-currency-converter
v1.1.2
Published
npm package to convert currency
Downloads
1
Readme
cc-currency-converter
An npm package to convert currencies
Installation
Install the package using npm:
npm install cc-currency-converter
Import
Import the package by using the following block of code
import { convertCurrency } from "cc-currency-converter";
Ussage
convertCurrency("USD", "INR", 4)
.then((result) => {
console.log(result);
})
.catch((error) => {
console.error("Error:", error.message);
});