1.1.11 • Published 7 years ago

noinfopath-scheduler v1.1.11

Weekly downloads
21
License
MIT
Repository
github
Last release
7 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

7 years ago

1.1.10

7 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago