2.0.1 • Published 6 years ago
node-fixer-io v2.0.1
Node-fixer.io
Install
npm install node-fixer-io
Functions
fixer.get(callback);
fixer.allowedRates(); // Lists ISO_4217 codes available to convert
var newAmount = fixer.convert(fromCurrency, toCurrency, oldAmount);
Example
fixer.get(function (err, res, body) {
var GBP = fixer.convert("USD", "GBP", 10); // 10 US Dollars in British Pounds
var USD = fixer.convert("EUR", "USD", 14); // 14 Euros in US Dollars
var EUR = fixer.convert("GBP", "EUR", 27); // 27 British Pounds in Euros
});