cron-expression-validator
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "cron-expression-validator", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Validate cron expressions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,12 +13,16 @@ # cron-expression-validator | ||
var cronValidator = require('cron-expression-validator'); | ||
var isValid = cronValidator.isValidCronExpression("* * * * * ? *"); // returns true | ||
if(cronValidator.isValidCronExpression("* * * * * ? *")) { // returns true | ||
// Your code | ||
} | ||
if(cronValidator.isValidCronExpression("* * * * * * *")) { // returns false | ||
// Your code | ||
} | ||
``` js | ||
var cronValidator = require('cron-expression-validator'); | ||
var isValid = cronValidator.isValidCronExpression("* * * * * ? *"); // returns true | ||
``` | ||
```js | ||
if(cronValidator.isValidCronExpression("* * * * * ? *")) { // returns true | ||
// Your code | ||
} | ||
``` | ||
```js | ||
if(cronValidator.isValidCronExpression("* * * * * * *")) { // returns false | ||
// Your code | ||
} | ||
``` | ||
@@ -25,0 +29,0 @@ ## Cron accepted values |
8817
39