mmhh

1.0.0 • Public • Published

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'}) 

MIT

/mmhh/

    Package Sidebar

    Install

    npm i mmhh

    Weekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    3.56 kB

    Total Files

    5

    Last publish

    Collaborators

    • fanlia