nxtcron - v1.0.1
    Preparing search index...

    Variable parseConst

    parse: (expr: string) => ParsedCronExpression = ...

    Parse and fully validate a cron expression.

    Type Declaration

      • (expr: string): ParsedCronExpression
      • Parse a cron expression into a fully validated internal representation.

        The returned object contains the parsed field definitions together with pre-computed value sets for efficient schedule evaluation.

        Parameters

        • expr: string

          A standard 5-field cron string or special alias.

        Returns ParsedCronExpression

        A fully parsed cron expression.

        Error if the expression is malformed or contains invalid values.

        const parsed = parser.parse( '* 9-17 * JAN,MAR MON-FRI' );