File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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+
2325meantime (function () {
2426 // Prints "1/Infinity", "2/Infinity", "3/Infinity", ...
2527 console .log (this .calls + " /" + this .options .limit );
You can’t perform that action at this time.
0 commit comments