Bun.CronWithAutocomplete TypeScript type alias | API Reference | Bun
BuildDocsReferenceGuidesBlogDiscord/
Bun/
CronWithAutocompleteTCronWithAutocomplete
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
Bun/
CronWithAutocompleteTCronWithAutocomplete
type
CronWithAutocompletetype
CronWithAutocomplete = '@yearly' | '@annually' | '@monthly' | '@weekly' | '@daily' | '@midnight' | '@hourly' | '* * * * *' | '0 * * * *' | '0 0 * * *' | '0 0 * * 0' | '0 0 1 * *' | '0 0 1 1 *' | `${string} ${string} ${string} ${string} ${string}` | string & {}
A cron schedule: a 5-field expression (minute hour day month weekday) or a nickname.
Nicknames: @yearly, @annually, @monthly, @weekly, @daily, @midnight, @hourly.
Fields support *, numbers, ranges (1-5), steps (1-30/2), comma lists (1,5,10), and month/weekday names (JAN-DEC, SUN-SAT).
Validated at runtime by the cron parser.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →