1.1.2 • Published 2 years ago
cc-currency-converter v1.1.2
cc-currency-converter
An npm package to convert currencies
Installation
Install the package using npm:
npm install cc-currency-converterImport
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);
});