cronbake-parser
v3.0.0
Published
Parser for cronbake
Readme
Cronbake Parser – Cron Expression Parsing for the Browser
This package provides a powerful cron expression parser, originally based on the excellent cronbake library. The parser is designed to work seamlessly in browser environments, making it easy to validate, parse, and compute next/previous execution times for cron expressions on the client side.
Features
- Expressive Cron Expression Support:
Supports standard cron syntax, including wildcards, ranges, steps, lists, and common presets. - Custom Presets:
Parse expressions like@every_5_minutes,@at_12:30, and more. - Human-Readable Field Mapping:
Understands fields in the order:second minute hour day month day-of-week. - Validation:
Check if a string is a valid cron expression before using it. - Next/Previous Execution Calculation:
Compute the next or previous run time for any valid cron expression. - Lightweight & Browser-Friendly:
No Node.js dependencies; works in any modern browser.
