1.0.0 • Published 5 years ago
mmhh v1.0.0
mmhh
simple time scheduler
Getting started
npm i mmhhUsage
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'}) MIT
1.0.0
5 years ago