timeplan

1.0.0 • Public • Published

Timeplan

simplest way to assign delayed tasks and repetitive tasks


Installation

  npm install timeplan

or

  git clone git://github.com/InspiredJW/timeplan.git

Usage

Delayed Task
timeplan.delayed({
  period: "m"
  task: function() {
    console.log("Every Minutes");
  }
});
Repetitive Task
timeplan.repeat({
  period: "3s"
  task: function() {
    console.log("Every 3 Seconds");
  }
});

Periods

  • year : Y, year, years

  • month : M, month, months

  • week : W, week, weeks

  • day : D, day, days

  • hour : h, hour, hours

  • minute : m, minute, minutes

  • second : s, second, seconds

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i timeplan

Weekly Downloads

0

Version

1.0.0

License

none

Last publish

Collaborators

  • inspired_jw