Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkalosi committed Sep 20, 2014
1 parent 0bb5981 commit 3e473d1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ JS Money is a JavaScript implementation of Martin Fowlers [Money pattern](http:/
$ npm install js-money

## Usage
```javascript
var Money = require('js-money');

var Money = require('js-money');

var fiveEur = new Money(500, Money.EUR); // 5 EUR
var tenEur = fiveEur.multiply(2); // 10 EUR

var shares = tenEur.allocate(1,1,1); // [3.34,3.33,3.33]
```
## Tests

$ npm install
Expand All @@ -22,4 +27,4 @@ JS Money is a JavaScript implementation of Martin Fowlers [Money pattern](http:/

[The MIT License](http://opensource.org/licenses/MIT)

Copyright (c) 2014 David Kalosi [http://davidkalosi.com/](http://davidkalosi.com/)
Copyright (c) 2014 David Kalosi [http://davidkalosi.com/](http://davidkalosi.com/)

0 comments on commit 3e473d1

Please sign in to comment.