pulsed
0.0.1 • Public • Published pulsed
Run a function n
amount of times with a given interval pattern
install
npm
$ npm install pulsed --save
component
$ component install jwerle/pulsed --save
usage
var pulsed = require('pulsed')
var fn = pulsed([250, 500], Infinity, function () {
console.log('beep', Date.now());
});
This will run a function forever with a timeout pattern of 250ms
and 500ms
.
api
function pulsed (pattern, count, fn)
license
MIT
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 0.0.1
4
Version History
- VersionDownloads (Last 7 Days)
- 0.0.1
4
Package Sidebar
Install
Weekly Downloads