1.0.19 • Published 6 months 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
6 months ago
1.0.18
6 months ago
1.0.17
10 months ago
1.0.16
10 months ago
1.0.15
1 year ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.12
1 year ago
1.0.11
1 year ago
1.0.10
1 year ago
1.0.9
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago