bradymholt / cRonstrue

JavaScript library that translates Cron expressions into human readable descriptions
http://bradymholt.github.io/cRonstrue/
MIT License
1.28k stars 168 forks source link

Support for '@' expressions #318

Closed HB9HIL closed 4 months ago

HB9HIL commented 4 months ago

Added support for '@' expressions.

@yearly = 0 0 1 1 * @annually = 0 0 1 1 * @monthly = 0 0 1 * * @weekly = 0 0 * * 0 @daily = 0 0 * * * @midnight = 0 0 * * * @hourly = 0 * * * *

The @ expressions gots translated in a basic cron and given to the origin parse function. Let me know what you think.

bradymholt commented 4 months ago

Nice!

Would you be up for adding something to README mentioning this? Maybe an item on the Features list and a usage example?

bradymholt commented 4 months ago

@HB9HIL Looks like there are some test failures.

HB9HIL commented 4 months ago

@HB9HIL Looks like there are some test failures.

upps. I forgot to catch the empty case.

I also added the necessary tests. Sorry :)

github-actions[bot] commented 4 months ago

The changes in PR were just released in v2.50.0 🎉.

HB9HIL commented 4 months ago

Thanks!

Thanks to you :)