kelektiv / node-cron

Cron for NodeJS.
MIT License
8.3k stars 617 forks source link

Type-level CRON expressions validation #820

Open alexvictoor opened 6 months ago

alexvictoor commented 6 months ago

⭐ Suggestion

Hello! Thanks a lot for this great library! Would you be interested by a PR adding type-level validation to CRON expressions? I have already built a type level validator that seems to worked well with node-cron. Happy to discuss any issue and eager to get feedback.

💻 Use Cases

No response

❌ Related Problems

I am using node-cron at my day job. Although we are quite fans of TDD in my team, the cron job configuration code is not covered by tests. One day I was in a hurry to push some batch changes... one of the cron expressions was invalid :( Would be great if this kind of accident could be avoided.