timeplan
v1.0.0
Published
simplest way to assign delayed tasks and repetitive tasks
Downloads
3
Readme
Timeplan
####simplest way to assign delayed tasks and repetitive tasks
Installation
or
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