This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

cron-manager

0.1.3 • Public • Published

Cron Manager

Cron Manager is a manager which you can define cron jobs easily without think about the cron regex.

I am not sure it is a requirement for your project. But I like this and maybe you like too. :)

Installation

$ npm install cron-manager

Usage

var CronManager = require('cron-manager');

var MyTask = {
    
    type: "daytime", // Optional

    exec: function () {
        console.log("executed");
    }

};

var tasks = {
    second: [MyTask],
    minute: [],
    hourly: []
};

new CronManager(tasks);

Extras

  • daytime: It means that the Cron Manager runs it beetween 9 AM and 11 PM.
  • midnight: It means that the Cron Manager runs it beetween 0 AM and 8 AM.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i cron-manager

Weekly Downloads

3

Version

0.1.3

License

MIT

Last publish

Collaborators

  • ozziest