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

Readme

Keywords

none

Package Sidebar

Install

npm i mmhh

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

3.56 kB

Total Files

5

Last publish

Collaborators

  • fanlia