cro

cronzitto

Schedule tasks to run

Showing:

Popularity

Downloads/wk

1

GitHub Stars

4

Maintenance

Last Commit

7yrs ago

Contributors

2

Package

Dependencies

3

Size (min+gzip)

4.9KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Cronzitto

Cronzitto allows you to schedule tasks to run.

NPM

Install

First of all, make sure you have Node.js installed.

  $ [sudo] npm install cronzitto

Usage

Require cronzitto module

var Cron = require('cronzitto');

Watch an event

  var watchMail = Cron.watch( function() {
    //Mail.getAll();
  }, '10 minutes');

The watch method accepts two parameters: the callback and timer.

Cancel an event

To cancel a cronzitto event, use the cancel method

  watchMail.cancel();

Reset an event time

Reset the execution time.

  watchMail.resetTimer('30 minutes');

Sleep

Wait a while to continue execution

  watchMail.sleep('5 minutes');

Execute only once

Perform a task only once, after the end of the timer.

  Cron.once( function() {
    //run after a minute
  }, '1 minute');

Notify

You can receive notifications when the task finishes or is stopped.

Requirements! To use Growl notifications, you need to install node-growl.

Non-Notify

To disable the notifications engine, set the Cronzitto:

  Cron.config.notify = false;

Non-Beep

To disable the BEEP sound:

  Cron.config.beep = false;

License

Cronzitto is available under the MIT license.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100