Cron jobs for Node.js applications that enables developers to execute functions or system commands on schedules defined using standard cron syntax
94
Build a reminder scheduler that executes one-time reminders at specific dates and times.
Your task is to implement a reminder scheduler that allows users to schedule reminders to fire at exact dates and times in the future. Each reminder should execute exactly once at the scheduled time.
The scheduler should:
@generates
/**
* Schedules a one-time reminder to execute at a specific date/time.
*
* @param {Date} reminderTime - The exact date and time when the reminder should fire
* @param {Function} onReminder - Callback function to execute when the reminder fires
* @param {boolean} [autoStart=true] - Whether to start the scheduler immediately
* @returns {Object} A scheduler object with start() and stop() methods
*/
function scheduleReminder(reminderTime, onReminder, autoStart = true) {
// IMPLEMENTATION HERE
}
module.exports = { scheduleReminder };Job scheduling library for Node.js that supports Date-based one-time execution.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-cronevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10