Gathering detailed insights and metrics for node-cron
Gathering detailed insights and metrics for node-cron
Gathering detailed insights and metrics for node-cron
Gathering detailed insights and metrics for node-cron
npm install node-cron
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.3
Supply Chain
100
Quality
93.2
Maintenance
100
Vulnerability
100
License
TypeScript (99.03%)
JavaScript (0.97%)
Total Downloads
165,830,014
Last Day
76,041
Last Week
1,082,518
Last Month
4,576,292
Last Year
51,194,385
ISC License
3,093 Stars
493 Commits
264 Forks
22 Watchers
2 Branches
32 Contributors
Updated on Jul 05, 2025
Minified
Minified + Gzipped
Latest Version
4.2.0
Package Id
node-cron@4.2.0
Unpacked Size
214.45 kB
Size
27.48 kB
File Count
129
NPM Version
10.8.2
Node Version
20.19.2
Published on
Jul 01, 2025
Cumulative downloads
Total Downloads
Last Day
19.4%
76,041
Compared to previous day
Last Week
-4.9%
1,082,518
Compared to previous week
Last Month
1.5%
4,576,292
Compared to previous month
Last Year
73.4%
51,194,385
Compared to previous year
The node-cron module is tiny task scheduler in pure JavaScript for node.js based on GNU crontab. This module allows you to schedule task in node.js using full crontab syntax.
Install node-cron using npm:
1npm install --save node-cron
Import node-cron and schedule a task:
1const cron = require('node-cron'); 2 3cron.schedule('* * * * *', () => { 4 console.log('running a task every minute'); 5});
1import cron from 'node-cron'; 2 3cron.schedule('* * * * *', () => { 4 console.log('running a task every minute'); 5});
This is a quick reference to cron syntax and also shows the options supported by node-cron.
# ┌────────────── second (optional)
# │ ┌──────────── minute
# │ │ ┌────────── hour
# │ │ │ ┌──────── day of month
# │ │ │ │ ┌────── month
# │ │ │ │ │ ┌──── day of week
# │ │ │ │ │ │
# │ │ │ │ │ │
# * * * * * *
field | value |
---|---|
second | 0-59 |
minute | 0-59 |
hour | 0-23 |
day of month | 1-31 |
month | 1-12 (or names) |
day of week | 0-7 (or names, 0 or 7 are sunday) |
Feel free to submit issues and enhancement requests here.
In general, we follow the "fork-and-pull" Git workflow.
NOTE: Be sure to merge the latest from "upstream" before making a pull request!
Please do not contribute code you did not write yourself, unless you are certain you have the legal ability to do so. Also ensure all contributed code can be distributed under the ISC License.
This project exists thanks to all the people who contribute.
Thank you to all our backers! 🙏 [Become a backer]
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
node-cron is under ISC License.
No vulnerabilities found.
Reason
30 commit(s) and 25 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
Found 2/22 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More