To install Buncurlcurl -fsSL https://bun.sh/install | bashnpmnpm install -g bunpowershellpowershell -c "irm bun.sh/install.ps1|iex"scoopscoop install bunbrewbrew tap oven-sh/bunbrew install bundockerdocker pull oven/bundocker run --rm --init --ulimit memlock=-1:-1 oven/bunTo upgrade Bunbun upgrade4 MB smaller on Linux x64Bun.cron — OS-level Cron Jobs and Expression ParsingBun now includes a built-in Bun.cron API for registering OS-level cron jobs, parsing cron expressions, and removing scheduled jobs — all cross-platform.Register a cron job// Register a cron job (crontab on Linux, launchd on macOS, Task Scheduler on Windows)

await Bun.cron("./worker.ts", "30 2 * * MON", "weekly-report");

When the OS scheduler fires, Bun imports the script and calls default.scheduled(), following the Cloudflare Workers Cron Triggers API:worker.ts// worker.ts

export default {

async scheduled(controller) {