Comparing version 1.1.0 to 1.1.2
{ | ||
"name": "croner", | ||
"version": "1.1.0", | ||
"version": "1.1.2", | ||
"description": "Isomorphic JavaScript cron parser and scheduler.", | ||
@@ -5,0 +5,0 @@ "author": "Hexagon <github.com/hexagon>", |
@@ -32,3 +32,3 @@ | ||
```javascript | ||
// Run a function each second | ||
// Run a function each second, limit to five runs | ||
Cron('* * * * * *', { maxRuns: 5 }, function () { | ||
@@ -41,5 +41,5 @@ console.log('This will run each second, but only five times.'); | ||
```javascript | ||
// Run a function each second | ||
// Run a function each second, get reference to job | ||
var job = Cron('* * * * * *', function () { | ||
console.log('This will run each second, but only five times.'); | ||
console.log('This will run each second.'); | ||
}); | ||
@@ -99,8 +99,8 @@ | ||
job.stop(); | ||
``` | ||
# Full API | ||
```javascript | ||
var o = Cron( <string pattern>[, <object options>] [, <function callback> ] ); | ||
var o = Cron( <string pattern> [, <object options>] [, <function callback> ] ); | ||
@@ -107,0 +107,0 @@ // If Cron is initialized without a scheduled function, cron itself is returned |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41166