three-fourteen
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Three-Fourteen

Three-Fourteen is a simple in-memory function scheduler.

const { initialize } = require('three-fourteen');
initialize([
  { action: () => console.log('Runs every minute') },
  {
    action: () => console.log('Runs on the 15th minute of every hour'),
    schedule: { minute: 15 }
  },
  {
    action: () => console.log('Runs at 3:14 every night'),
    schedule: { hour: 3, minute: 14 }
  },
  {
    action: () => console.log('Runs on the first minute of July'),
    schedule: { month: 5 }
  }
]);

Check the index.d.ts for more typing stuff.

Readme

Keywords

none

Package Sidebar

Install

npm i three-fourteen

Weekly Downloads

2

Version

0.2.0

License

MIT

Unpacked Size

3.92 kB

Total Files

5

Last publish

Collaborators

  • casestack