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 { buildUnicode, DIGIT, END, quantity, START } from "jsr:@coven/expression@^0.3.3"; import { test } from "jsr:@coven/predicates@^0.3.3"; import { RANGE_EXPRESSION_SEPARATOR_TOKEN } from "./tokens.ts"; /** * Regular expression to test if given string is a range. */ export const rangeStringTest: (text: string) => boolean = test( buildUnicode( START, quantity("1,2")(DIGIT), RANGE_EXPRESSION_SEPARATOR_TOKEN, quantity("1,2")(DIGIT), END, ), );