timers

    0.1.1 • Public • Published

    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

    Keywords

    none

    Install

    npm i timers

    DownloadsWeekly Downloads

    44,312

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • popomore