
Description
Croner is a cron library for JavaScript and TypeScript that can trigger functions on a cron schedule or evaluate cron expressions to list upcoming run times. It has no dependencies and works in Node.js 18 or newer, Deno 2 or newer, Bun 1 or newer, and in browsers as a standalone script, a UMD build or an ES module. It supports the Open Cron Pattern Specification, version 1.0 through 1.4, including seconds and year fields, the L, W, # and AND operators. You can run jobs in a chosen time zone, use asynchronous functions, and pause, resume or stop a job after it is scheduled. It includes overrun protection, error handling and TypeScript typings. Scheduling happens in memory, so it needs no database or configuration file. Examples on the site show running a function every five seconds, listing the next hundred Sundays, counting the days until a date, and running a job at a specific time in a time zone such as Asia/Kolkata. The site says the library is tested and relied on by projects such as pm2, Uptime Kuma, Z-Wave JS UI and TrueNAS. A feature comparison table places it against cronosjs, node-cron, cron and node-schedule. The project is on GitHub at hexagon/croner.…
Highlights
- Cron scheduling in JavaScript and TypeScript
- No dependencies
- Runs in Node, Deno, Bun and browsers
- Time zones, pause and resume
- Open Cron Pattern Specification support
Ratings & Reviews
No ratings yet
Be the first to rate Croner.
People also visit
Croner FAQ
What is Croner?
A cron library for JavaScript and TypeScript that runs functions on a schedule or lists upcoming run times.
Which runtimes does it support?
Node.js 18 or newer, Deno 2 or newer, Bun 1 or newer, and browsers.
Does it need a database?
No. Scheduling happens in memory, with no configuration file.
Can I set a time zone?
Yes. Jobs can run in a chosen time zone.
Which projects use it?
The site lists pm2, Uptime Kuma, Z-Wave JS UI and TrueNAS.
Where is the source?
On GitHub at hexagon/croner.
What are the best Croner alternatives?
Popular alternatives to Croner include Gronx, Cronicle and CronTool. See all Croner alternatives




