aws-cron-validate
v0.0.1
Published
cron-expression validator written in TypeScript.
Downloads
1,696
Maintainers
Readme
cron-expression validator
cron-expression validator written in TypeScript.
Usage
import cron from '<package-name>'
const cronResult = cron('* * * * *')
if (cronResult.isValid()) {
// !cronResult.isError()
// valid code
} else {
// error code
}
import cron from '<package-name>'
cron('* * * * *').isValid()
cron('* * * * *').isError()
cron('* 2,3,4 * * *').isValid()
cron('0 */2 */5 * *').isValid()