Skip to content

Commit 824fded

Browse files
committed
fix: Readme Changes
1 parent cc9dd7c commit 824fded

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

readme.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
[![NPM](https://nodei.co/npm/friendly-node-cron.png)](https://nodei.co/npm/friendly-node-cron/)
66

77
Friendlier, human readable expressions for node-cron
8+
Cron Expressions are doublechecked with [crontab.guru](https://crontab.guru/)
9+
810
Inspired by https://github.com/jkriss/friendly-cron
911

1012
How to install:
@@ -34,11 +36,29 @@ translate('invalid expr');
3436
// Also all Patterns which are resulting in '* * * * * *' will automatically return null.
3537
```
3638

39+
# Tested complex examples
40+
Look into [./test.js](https://github.com/FreaKzero/friendly-node-cron/blob/main/test.js) for more examples and the parsed cron expressions.
41+
42+
```
43+
at 00:00 on dec 24
44+
every 20 seconds mondays tuesdays wednesdays
45+
at 13:37 on fridays tuesdays and thursdays
46+
At 12:10 on Monday and Tuesday in December
47+
onN saturDas In deCmbeR aT 06:01
48+
at 9:04:52 every mondays in december
49+
on saturdays every 10 minutes
50+
very mondays in december all 15 minutes
51+
on jan feb mar only mondays tuesdays and saturdays at 9:30
52+
every 15 minutes from 5 through 15 of december and january
53+
on march and april from 15 through 25 on every 2 hours
54+
weekly in 15 minute intervals on january
55+
quarterly at 9:30 on mondays
56+
```
3757
# Speech Rules
3858

3959
## Days:
4060

41-
Days will always translate in numbers. `weekends` translates to `6,7` and workdays will translate to `1,2,4,5`.
61+
Days will always translate in numbers. `weekends` translates to `6,0` and workdays will translate to `1-5`.
4262

4363
You can also write the full words like `on saturday at 9:30`
4464

0 commit comments

Comments
 (0)