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

x/croner/src/pattern.js

Trigger functions or evaluate cron expressions in JavaScript or TypeScript. No dependencies. Most features. Node. Deno. Bun. Browser.
Go to Latest
import * as croner from "https://deno.land/x/croner@8.1.2/src/pattern.js";

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).

Functions

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