live-currency-exchange
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "live-currency-exchange", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Get currency exchange rates from the European Central Bank", | ||
@@ -14,3 +14,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/vivekimsit/exchange-rate.git" | ||
"url": "git@github.com:tiborsaas/live-currency-exchange.git" | ||
}, | ||
@@ -28,5 +28,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/vivekimsit/exchange-rate/issues" | ||
"url": "https://github.com/tiborsaas/live-currency-exchange/issues" | ||
}, | ||
"homepage": "https://github.com/vivekimsit/exchange-rate#readme", | ||
"homepage": "https://github.com/tiborsaas/live-currency-exchange", | ||
"devDependencies": { | ||
@@ -33,0 +33,0 @@ "ava": "^0.25.0", |
@@ -1,4 +0,4 @@ | ||
# exchange-rate [![Build Status](https://travis-ci.org/vivekimsit/exchange-rate.svg?branch=master)](https://travis-ci.org/vivekimsit/exchange-rate) | ||
> Get currency exchange rates | ||
# Live currency exchange | ||
> Get currency exchange rates from the European Central Bank. | ||
@@ -8,3 +8,3 @@ ## Install | ||
``` | ||
$ npm install exchange-rate | ||
$ npm i live-currency-exchange | ||
``` | ||
@@ -17,3 +17,9 @@ | ||
const exchange = createExchange(); | ||
const {source, target, rate} = await exchange.convert({source: 'EUR', target: 'GBP'}); | ||
const {source, target, rate} = await exchange.convert({source: 'GBP', target: 'EUR'}); | ||
``` | ||
### Response | ||
```json | ||
{ source: 'GBP', target: 'EUR', rate: 1.1708 } | ||
``` |
23
11653