Skip to content
PACKAGES

parseCron()

Parse a standard five-field cron expression.

import { parseCron } from "@graphrefly/ts/sources";
function parseCron(expr: string): CronSchedule
ParameterTypeDescription
exprstringCron expression in minute hour day month weekday order.

A normalized cron schedule with one set per field.

parseCron("0,5 * * * *");

packages/ts/src/graph/sources.ts