Skip to content

ashack293/schedule

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Schedule

A tiny cron-like tool for Node.js

Build Status Coverage Status


Install

$ npm install schedule

Usage

var every = require('schedule').every;
every('2 s').do(function() {
  // do your job
});

You can stop interval when some exception

var every = require('schedule').every;
var ins = every('2 seconds').do(cb);

process.on('uncaughtException', function() {
  ins.stop();
})

Format

  • ms, millisecond, milliseconds
  • s, second, seconds
  • m, minute, minutes
  • h, hour, hours
  • d, day, days

License

MIT

About

A tiny cron-like tool for Node.js

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 88.4%
  • Makefile 11.6%