schedule
A tiny cron-like tools for humman.
Last updated 13 years ago by popomore .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install schedule 
SYNC missed versions from official npm registry.

Schedule

A tiny cron-like tools for humman, implement by Node.js


Install

$ npm install schedule

Usage

var every = require('schedule').every;
every('2s').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, minite, minites
  • h, hour, hours
  • d, day, days

Lisence

MIT

Current Tags

  • 0.5.0                                ...           latest (8 years ago)
  • 0.5.0                                ...           next (8 years ago)

6 Versions

  • 0.5.0                                ...           8 years ago
  • 0.5.0-alpha.0                                ...           8 years ago
  • 0.4.0                                ...           8 years ago
  • 0.3.0                                ...           8 years ago
  • 0.2.0                                ...           8 years ago
  • 0.1.0                                ...           13 years ago
Maintainers (1)
Downloads
Total 13
Today 0
This Week 0
This Month 12
Last Day 0
Last Week 10
Last Month 0
Dependencies (0)
None
Dev Dependencies (6)

© 2010 - cnpmjs.org x YWFE | Home | YWFE