Skip to content
This repository has been archived by the owner on Feb 1, 2025. It is now read-only.
/ cron-manager Public archive

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

Notifications You must be signed in to change notification settings

ozziest/cron-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published