A zero-dependency cron parser and scheduler for Node.js, Deno and the browser.
MIT License
Bot releases are visible (Hide)
Signed-off-by: Pascal Sthamer [email protected]
Signed-off-by: Pascal Sthamer [email protected]
cron-schedule/schedulers/interval-based.js
andcron-schedule/schedulers/timer-based.js
instead.Signed-off-by: Pascal Sthamer [email protected]
Published by P4sca1 over 1 year ago
Published by P4sca1 over 1 year ago
Signed-off-by: Pascal Sthamer [email protected]
Published by P4sca1 over 1 year ago
Signed-off-by: Pascal Sthamer [email protected]
cron-schedule/schedulers/interval-based.js
andcron-schedule/schedulers/timer-based.js
instead.Signed-off-by: Pascal Sthamer [email protected]
Published by P4sca1 over 3 years ago
Signed-off-by: Pascal Sthamer [email protected]
Published by P4sca1 almost 4 years ago
cron.getNextDatesIterator
and cron.getPrevdatesIterator()
Published by P4sca1 almost 4 years ago
Schedule
to Cron
IntervalBasedScheduler
setTimeout
, setInterval
and clearTimeoutOrInterval
to TimerBasedScheduler
See README.md
for instructions on how to use the new scheduler.
Quick migration guide:
// v1.x
import { parseCronExpression } from 'cron-schedule'
const schedule = parseCronExpression('* * * * *')
schedule.setTimeout(fn)
schedule.setInterval(fn)
schedule.clearTimeoutOrInterval(id)
// v2.x
import { parseCronExpression, TimerBasedScheduler as scheduler } from 'cron-schedule'
const cron = parseCronExpression('* * * * *')
scheduler.setTimeout(cron, fn)
scheduler.setInterval(cron, fn)
scheduler.clearTimeoutOrInterval(id)