timers
Last updated 11 years ago by popomore .
MIT · Original npm · Tarball · package.json
$ gnpm install timers 
SYNC missed versions from official npm registry.

Schedule

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

Build Status Coverage Status


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.1.1                                ...           latest (11 years ago)

3 Versions

  • 0.1.1                                ...           11 years ago
  • 0.1.0                                ...           11 years ago
  • 0.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |