kelektiv/node-cron

Cron for NodeJS.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 38 minutes ago
Added to GitGenius on September 7th, 2026
Created on June 23rd, 2010
Open Issues & Pull Requests: 34 (+0)
GitHub issues: Enabled
Number of forks: 645
Total Stargazers: 8,948 (+0)
Total Subscribers: 105 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.2 days
Mean response time: 33.3 days
90th percentile: 40.6 days
Tracked items: 57

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Work labelled "released" is answered fastest, typically in about 6 hours, while "type:feature" waits about 3 days. Only 4% of issues opened in the past year have been closed. Three people close 90% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 9
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 854 days
Stale 30+ days: 5
Stale 90+ days: 3

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • released (14)
  • type:feature (12)
  • type:bug (10)
  • help wanted (6)
  • hacktoberfest (4)
  • status:ready (4)
  • duplicate (3)
  • good first issue (3)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

node-cron is a cron job scheduler for Node.js that executes functions or external commands on schedules defined using cron syntax.

The tool solves the problem of scheduling recurring tasks in Node.js applications by providing a robust implementation of Unix cron patterns. It accepts cron syntax to define when jobs should run, then triggers registered callbacks at those times. The library supports standard five-field cron patterns plus an optional sixth field for second-level precision, allowing finer granularity than traditional Unix cron. Jobs can execute JavaScript functions directly, spawn external system commands via child_process, or trigger based on Date or Luxon DateTime objects instead of cron syntax.

Developers should choose this tool for applications requiring scheduled task execution like data backups, notifications, or periodic maintenance jobs. It suits projects already built on Node.js where adding a dedicated external scheduler would introduce unnecessary complexity. The library provides both a simple functional API and a CronJob class for more control, giving flexibility in how tasks are integrated into existing codebases.

The project maintains active engagement with contributions and issue resolution. Breaking changes between major versions are clearly documented with migration guides that explain what changed and how to update code. The codebase is written in TypeScript, providing type safety for developers using the library. The tool has evolved to align more closely with Unix cron behavior while adding Node.js-specific enhancements like the seconds field and JavaScript callback execution.