aws-cron-expression-validator
v1.0.5
Published
Parse aws event bridge cron expression
Downloads
1,619
Maintainers
Readme
AWS eventBridge schedule cron expression parser
Validate aws cron expression
const { awsCronExpressionValidator } = require('aws-cron-expression-validator')
const valid = awsCronExpressionValidator('0 12 ? * MON-FRI *')
/** if it's valid it will return object
*return {
* minute,
* hour,
* dayOfMonth,
* month,
* dayOfWeek,
* year,
* expression
* }
**/
// if it's invalid it will throw exception.