Cron jobs for Node.js applications that enables developers to execute functions or system commands on schedules defined using standard cron syntax
94
A utility library that validates cron expressions and provides detailed feedback about their format and supported features.
Validate various cron expression formats and provide clear feedback when expressions are invalid.
Recognize and validate preset cron expressions that represent common scheduling patterns.
Validate expressions containing ranges, lists, steps, and name aliases.
@generates
/**
* Validates a cron expression and returns whether it is valid.
* Supports both 5-field and 6-field formats, preset expressions,
* and various cron syntax features like ranges, lists, steps, and name aliases.
*
* @param {string} expression - The cron expression to validate
* @returns {boolean} True if the expression is valid, false otherwise
*/
function validateCronExpression(expression) {
// IMPLEMENTATION HERE
}
module.exports = {
validateCronExpression
};Provides cron expression parsing and validation support.
@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