Skip to content

Commit

Permalink
adjusted docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shennan committed Jan 22, 2016
1 parent 7f2bfba commit 0334228
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,34 @@

## install

Load the script from the browser:

```html
<script type="text/javascript" src="simple-stopwatch/index.js"></script>
```

Or install using npm:

```
$ npm install simple-stopwatch
```

## usage

Use from the window:

```js
simpleStopwatch().start();
```

Or use a CommonJS module loader and namespace it:

```js
var stopwatch = require('simple-stopwatch');

stopwatch().start();
```

Start a basic count:

```js
Expand Down

0 comments on commit 0334228

Please sign in to comment.