daily-scheduler

1.0.3 • Public • Published

daily-scheduler

GitHub GitHub package.json version npm GitHub file size in bytes

NPM

This will help you to schedule any function to be executed daily at a specific time. Can be used on a browser or in an electron app depending on the browser's/operating system's time zone.

Getting Started

Install daily-scheduler using npm:

$ npm install daily-scheduler

Import daily-scheduler and schedule a task:

var schedule = require('daily-scheduler');
 
schedule(14,0,0, () => {
  console.log("It's 02:00 PM!");
});

Syntax

daily-scheduler takes 4 arguments

  • hours: 0 - 23
  • minutes: 0 - 59
  • seconds: 0 - 59
  • callback: function, typically () => void

Package Sidebar

Install

npm i daily-scheduler

Weekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

5.08 kB

Total Files

6

Last publish

Collaborators

  • andrew-lawendy