1.0.19 • Published 2 years ago
cronjob-to-task-scheduler v1.0.19
Cronjob-to-Task-Scheduler
cronjob-to-task-scheduler
is a library that converts a cron schedule to a Windows task schedule.
📦 Install
npm install cronjob-to-task-scheduler
🔨 How to Usage
To use the library, follow the example:
const { CronToTaskSchedule } = require("cronjob-to-task-scheduler");
const taskName = 'openNotepad';
const cronExpression = '00 12 * * *';
const action = {
command: 'notepad'
// you can pass execution arguments in arguments property
}
CronToTaskSchedule.convert(taskName, cronExpression, action);
If you want to create a folder for your schedules just add a \
const { CronToTaskSchedule } = require("cronjob-to-task-scheduler");
const taskName = 'MyTasks\\openNotepad';
const cronExpression = '00 12 * * *';
const action = {
command: 'notepad'
// you can pass execution arguments in arguments property
}
CronToTaskSchedule.convert(taskName, cronExpression, action);
Result
Limitations
A schedule must have a maximum of 37 triggers.
It does not support day (month) and day (week) together. For example: (0 22 1 * 1-5).
The rule for modifiers with / has not been implemented.
1.0.19
2 years ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago