live-currency-exchange
v1.0.2
Published
Get currency exchange rates from the European Central Bank
Downloads
6
Maintainers
Readme
Live currency exchange
Get currency exchange rates from the European Central Bank.
Install
$ npm i live-currency-exchange
Usage
const createExchange = require('exchange-rate');
const exchange = createExchange();
const {source, target, rate} = await exchange.convert({source: 'GBP', target: 'EUR'});
Response
{ source: 'GBP', target: 'EUR', rate: 1.1708 }