Usage


The most basic usage of Croner for scheduling is:

Cron("0 12 * * *, () => {
    console.log("This will run every day at 12:00");
});

And the most basic usage of Croner for getting next execution time of a pattern is:

console.log(Cron("0 12 * * *).next());
// 2023-07-08T12:00:00