@lucid-softworks/queue-cron
v0.1.0
Published
UTC five-field cron parsing, matching, and occurrence calculation.
Maintainers
Readme
@lucid-softworks/queue-cron
Strict five-field UTC cron parsing, matching, and next-occurrence calculation.
import {
nextQueueCronOccurrence,
parseQueueCron,
} from "@lucid-softworks/queue-cron";
const schedule = parseQueueCron("*/15 9-17 * * 1-5");
const next = nextQueueCronOccurrence(schedule, Date.now());Fields support numeric wildcards, lists, ascending ranges, and steps. Weekday
7 aliases Sunday 0. Matching uses minute, hour, day-of-month, month, and
weekday together. Search is minute-based and bounded by maxMinutes.
