every-time-mirror
v0.0.0
Published
Declarative setInterval
Downloads
29
Maintainers
Readme
every-time
Declarative setInterval. See also: after-time
every = require('every-time')
every('5 mins, 5 seconds', function(){
console.log('hello')
})
Full Language Reference: english-time
Install
$ npm install every-time
Usage
every = require('every-time')
every('1s 250ms', function(){
// do something
})
Passing parameters:
every('5 secs', 'foo', 'bar', function(foo, bar) {
foo
// => 'foo'
bar
// => 'bar'
})