UNPKG

@lou.codes/cron

Version:

⏲️ Cron Quartz and Cron UNIX expression parser

11 lines (10 loc) 309 B
import { match } from "@lou.codes/predicates"; import { build } from "functional-expression"; import { cronRegExp } from "./cronRegExp.js"; /** * Validates if a string is a cron expression. * * @category Cron String * @see {CronString} */ export const isValidExpression = match(build("iu")(cronRegExp));