Skip to content

Commit 57d7f0a

Browse files
Add NPM instructions
1 parent 5977269 commit 57d7f0a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ A lightweight abstraction for the JavaScript Timer API.
55

66
## Installation
77

8-
You're currently out of luck, but in the future you'll be able to install Meantime with NPM.
8+
Install Meantime as an [NPM package](https://www.npmjs.org/package/meantime).
99

1010
```sh
11-
npm install --save meantime
11+
npm install meantime
1212
```
1313

1414
## Usage
@@ -20,6 +20,8 @@ The `meantime` function takes a callback function and an options object as argum
2020
* **Limit:** Number of times to call callback (default 1).
2121

2222
```javascript
23+
var meantime = require('meantime');
24+
2325
meantime(function () {
2426
// Prints "1/Infinity", "2/Infinity", "3/Infinity", ...
2527
console.log(this.calls + "/" + this.options.limit);

0 commit comments

Comments
 (0)