nxtcron - v1.0.1
    Preparing search index...

    Variable validateConst

    validate: (expr: string) => boolean = ...

    Check whether a cron expression is syntactically valid without throwing.

    Type Declaration

      • (expr: string): boolean
      • Validate a cron expression without throwing.

        Parameters

        • expr: string

          The cron expression to validate.

        Returns boolean

        true if valid, false otherwise.

        parser.validate( '0 9 * * MON' );  // true
        parser.validate( '99 * * * *' ); // false