periodically

1.0.2 • Public • Published

periodically

Because sometimes you need to do something periodically

Installtion

npm install --save periodically

or

yarn add periodically

Use

const periodically = require('../periodically')


function someFuncThatEvenUsesAPromise() {
  return new Promise(resolve => {
    resolve(true)
  })
}

// Run it every second
const checker = periodically(someFuncThatEvenUsesAPromise, 1000);

// Start it going
checker.start()

// Stop it if you need to
checker.stop()

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    2
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i periodically

Weekly Downloads

3

Version

1.0.2

License

ISC

Last publish

Collaborators

  • ethangarofolo