A simple currency converter Powered by Amdoren From free account so ir has basic functionalities and is limited to 10 API calls per month
This package can be installed using npm
npm install currency-conversion-paula
Import currency-conversion-paula
and use it as a Promise.
const convertCurrency = require('currency-conversion-paula');
var options = {
from: 'USD',
to: 'ARS',
amount: '10'
};
convertCurrency(options)
.then(res => console.log(res))
.catch(err => console.log(err));
Without the amount parameter, the function will return the currency based on amount 1.