mmhh
simple time scheduler
Getting started
npm i mmhh
Usage
const mmhh = new MMHH({
worker: () => {
console.log('ok', new Date())
},
unit: 2000,
})
// enum type { once now later}
// once: run once
// now: run once then schedule
// later: schedule
mmhh.start({type: 'later'})