Skip to content

Commit

Permalink
updated readme to have colours
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorah committed Apr 29, 2013
1 parent 4f7a7f6 commit a459111
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -4,7 +4,7 @@ fake-rates
How to use
----------

```
```javascript
rates = require('fake-rates');

rates.on('USDEUR', function(update) {
Expand All @@ -24,4 +24,4 @@ rates.on(currency, listener)
```
`currency` can be any of the standard currency pairs (`'USDJPY'`, `'USDEUR'` etc), plus `'all'` to get updates on all pairs.

`listener` is called on update with an update object. It has the properties `update.currencyPair`, `update.bid` and `update.offer`.
`listener` is called on update with an update object. It has the properties `update.currencyPair`, `update.bid` and `update.offer`.

0 comments on commit a459111

Please sign in to comment.