Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
⏳ Fantastic cron parser and constructor.
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
JSR Score
100%
Published
2 months ago (0.3.3)
import { build } from "jsr:@coven/expression@^0.3.3"; import { test } from "jsr:@coven/predicates@^0.3.3"; import type { CronString } from "./CronString.ts"; import { cronRegExp } from "./cronRegExp.ts"; /** * Validates if a string is a cron expression. * * @see {CronString} */ export const isValidExpression = test(build("iu")(cronRegExp)) as ( string: string, ) => string is CronString;