cronstrue 1.121.0 → 1.122.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
cRonstrue is a JavaScript library that parses a cron expression and outputs a human readable description of the cron schedule. For example, given the expression "*/5 * * * *" it will output "Every 5 minutes".
|
|
4
4
|
|
|
5
|
-
This library was ported from the original C#
|
|
5
|
+
This library was ported from the original C# implementation called [cron-expression-descriptor](https://github.com/bradymholt/cron-expression-descriptor) and is also available in a [few other languages](https://github.com/bradymholt/cron-expression-descriptor#ports).
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
- Zero dependencies
|
|
@@ -99,7 +99,7 @@ An options object can be passed as the second parameter to `cronstrue.toString`.
|
|
|
99
99
|
|
|
100
100
|
## i18n
|
|
101
101
|
|
|
102
|
-
To use the i18n support cRonstrue provides, you must use the packaged library that contains the locale
|
|
102
|
+
To use the i18n support cRonstrue provides, you must use the packaged library that contains the locale translations. Once you do this, you can pass the name of a supported locale as an option to `cronstrue.toString()`. For example, for the es (Spanish) locale, you would use: `cronstrue.toString("* * * * *", { locale: "es" });`.
|
|
103
103
|
|
|
104
104
|
### Node
|
|
105
105
|
```js
|
|
@@ -124,7 +124,7 @@ This library does not do full validation of cron expressions and assumes the exp
|
|
|
124
124
|
|
|
125
125
|
> Can cRonstrue output the next occurrence of the cron expression?
|
|
126
126
|
|
|
127
|
-
No, cRonstrue does not support this. It simply describes a cron expression. You could use another library to get the next
|
|
127
|
+
No, cRonstrue does not support this. It simply describes a cron expression. You could use another library to get the next occurrence of a cron expression and then pass that expression into cRonstrue, to achieve this.
|
|
128
128
|
|
|
129
129
|
### Supported Locales
|
|
130
130
|
|