Does not store jobs/progress in case of service restart/stop/fail.
import{createLunarCron,LUNAR_PHASES}from"lunar-cron";constlc=createLunarCron();lc.addJob("unique job name",//unique job name()=>console.log("job running!"),//callback / job to runLUNAR_PHASES.NEW,//lunar phase as trigger for the job0,//offset in ms (optional)-1//times to repeat the job (-1 for infinite times) (optional));lc.removeJob("unique job name");//remove a job and it's possible future executionslc.start();//start the servicelc.stop();//stop the servicelc.getScheduledJobs();//list the jobs that are still scheduled/active