cron-parser

An MIT-licensed JavaScript and TypeScript library for parsing cron expressions and calculating execution dates.

github.com/harrisiirak/cron-parser
cron-parser homepage screenshot

About cron-parser

cron-parser is a JavaScript and TypeScript library for parsing cron expressions and calculating execution dates. It is installed with npm and used in Node.js or TypeScript code. Given an expression such as '/2 *', it can return the next date, the previous date, or a set of upcoming dates through an iterator.

The library supports timezone handling through a tz option, including daylight saving time handling, and accepts start and end dates to limit an iteration range. The README lists Node.js 18 or later and TypeScript 5 or later as requirements. The library is MIT-licensed and free to use.

Key features

  • Parses cron expressions with an optional seconds field
  • Calculates next and previous execution dates from an expression
  • Returns several upcoming dates through an iterator
  • Timezone support through a tz option, such as Europe/London
  • Start and end date options that limit an iteration range
  • Supports L, #, and H characters and predefined aliases such as @daily
Best for: Developers building Node.js or TypeScript applications that need to calculate run times from cron schedules.
Good for
  • Free and MIT-licensed open source library
  • Handles timezones and daylight saving time transitions
  • Installable with a single npm command
Watch out for
  • Requires Node.js 18 or later and TypeScript 5 or later
  • String dates must use ISO8601, HTTP and RFC2822, or SQL formats

cron-parser at a glance

Type
Online tool
Pricing
Free
Open source
Yes
Last checked
Oct 9, 2026 · Online when checked
Listed
Oct 9, 2026

cron-parser alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 7 alternatives

Crontab.io

crontab.io

A free browser cron editor with timezone selection and previews of upcoming execution dates.

Free

cRonstrue

github.com/bradymholt/cRonstrue

An MIT-licensed library for turning cron expressions into readable descriptions in several languages.

FreeOpen source
6 alternatives

cron-validator

github.com/GuillaumeRochat/cron-validator

An MIT-licensed JavaScript cron syntax validator with configurable grammar options.

FreeOpen source

cron-job

cron-job.org

Schedule recurring execution of websites and scripts with the free cron-job.org service.

Cron Helper

cron.help

A free browser helper for reading five-field cron expressions and checking fields and operators.

Free

Popular in Web Development

Well-known listings from the same topic.

All 122

cron-parser FAQ

Which date string formats does the library accept?
The README lists ISO8601, HTTP and RFC2822, and SQL formats for string dates.
Which Node.js version is required?
The README lists Node.js version 18 or later.
How is the library installed?
It is installed with the command npm install cron-parser.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing