@kszongic/crontab-next-cli
v1.0.0
Published
CLI tool to show the next N run times for a cron expression
Maintainers
Readme
@kszongic/crontab-next-cli
Show the next N run times for a standard 5-field cron expression. Zero dependencies.
Install
npm install -g @kszongic/crontab-next-cliUsage
# Next 5 run times (default)
crontab-next "*/15 * * * *"
# Next 10 weekday 9 AM runs
crontab-next "0 9 * * mon-fri" --count 10
# Next 3 monthly runs
crontab-next "30 2 1 * *" --count 3Cron Fields
┌───────────── minute (0-59)
│ ┌───────────── hour (0-23)
│ │ ┌───────────── day of month (1-31)
│ │ │ ┌───────────── month (1-12 or jan-dec)
│ │ │ │ ┌───────────── day of week (0-6 or sun-sat)
│ │ │ │ │
* * * * *Supports: *, ranges (1-5), steps (*/15), lists (1,15,30), and named values (mon, jan).
Options
| Option | Description |
|---|---|
| --count N | Number of future times to show (default: 5) |
| --help | Show help |
| --version | Show version |
License
MIT
