Convert your currency easily
- 200+ Currencies
- Up to date rates
Install easy-currency-converter with npm
npm install easy-currency-converter
import convertCurrency from "easy-currency-converter";
try {
const convert = await convertCurrency("IDR", "USD", 1);
console.log(convert);
} catch (error) {
console.log(error);
}
// output
// {
// success: true,
// query: { from: 'USD', to: 'IDR', amount: 1 },
// info: { timestamp: 1658986983, rate: 14958.3 },
// date: '2022-07-28',
// result: 14958.3
// }
also you can use async/await function
For support, donate via paypal to raywibowo68@gmail.com
Contributions are always welcome!
Please adhere to this project's code of conduct
.