Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/croner/src/pattern.ts

Trigger functions or evaluate cron expressions in JavaScript or TypeScript. No dependencies. Most features. Node. Deno. Bun. Browser.
Latest
import * as croner from "https://deno.land/x/croner@9.0.1-dev.2/src/pattern.ts";

Classes

Create a CronPattern instance from pattern string ('* * * * * *')

Variables

Constants to represent different occurrences of a weekday in its month.

  • LAST_OCCURRENCE: The last occurrence of a weekday.
  • ANY_OCCURRENCE: Combines all individual weekday occurrence bitmasks, including the last.
  • OCCURRENCE_BITMASKS: An array of bitmasks, with each index representing the respective occurrence of a weekday (0-indexed).