1.1.11 • Published 6 years ago

noinfopath-scheduler v1.1.11

Weekly downloads
21
License
MIT
Repository
github
Last release
6 years ago

noinfopath-scheduler

NPM

Overview

JavaScript task scheduler that uses MomentJs duration syntax to define events. Also support specifying specific times of day.

Installation

npm install noinfopath-scheduler --save

Usage

For more details see the documentation page.

function doDoSomething() {}

function doDoSomthingElse() {}

var scheduler = require("noinfopath-scheduler"),
	alarmTask = {
		"job": {
			"name": "My Task that does something",
			"type": "alarm",
			"schedule": {
				"weekday": "tuesday",
				"time": "22:30"
			}
		},
		"fn": doDoSomething
	},
	intervalTask = {
		"job": {
			"name": "My Task that does something else",
			"schedule": {
				"interval": "h",
				"duration": "4"
			}
		},
		"fn": doDoSomthingElse
	};

scheduler.addSchedule(alarmTask);

scheduler.addSchedule(intervalTask);

scheduler.start();
1.1.11

6 years ago

1.1.10

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago