Conversio is an open source tool for money conversion using the Google money converter.
A simple snippet of how to use:
const {convert} = require('currencio');
convert({amount: 1, from: 'USD', to: 'MXN'}, callback);
The response format:
{
amount: 1,
converted: 19.2035,
from: 'USD',
to: 'MXN'
}
You can also obtain the exchange rate between two currencies:
const {getExchangeRate} = require('currencio');
getExchangeRate({from: 'USD', to: 'MXN'}, callback);