croner 7.0.0-dev.1 → 7.0.1
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 +15 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<img src="https://cdn.jsdelivr.net/gh/hexagon/croner@master/croner.png" alt="Croner" width="150" height="150"><br>
|
|
3
|
-
Trigger functions or evaluate cron expressions in JavaScript or TypeScript. No dependencies. All features. Node. Deno. Bun. Browser. <br><br>Try it live on <a href="https://jsfiddle.net/hexag0n/hoa8kwsb/">jsfiddle</a>, and check out the full documentation on <a href="https://
|
|
3
|
+
Trigger functions or evaluate cron expressions in JavaScript or TypeScript. No dependencies. All features. Node. Deno. Bun. Browser. <br><br>Try it live on <a href="https://jsfiddle.net/hexag0n/hoa8kwsb/">jsfiddle</a>, and check out the full documentation on <a href="https://croner.56k.guru">croner.56k.guru</a>.<br>
|
|
4
4
|
</p>
|
|
5
5
|
|
|
6
6
|
# Croner - Cron for JavaScript and TypeScript
|
|
@@ -13,9 +13,9 @@ Trigger functions or evaluate cron expressions in JavaScript or TypeScript. No d
|
|
|
13
13
|
* Uses Vixie-cron [pattern](#pattern), with additional features such as `L` for last day and weekday of month and `#` for nth weekday of month.
|
|
14
14
|
* Works in Node.js >=7.6 (both require and import), Deno >=1.16 and Bun >=0.2.2.
|
|
15
15
|
* Works in browsers as standalone, UMD or ES-module.
|
|
16
|
-
* Target different [time zones](https://
|
|
17
|
-
* Built-in [overrun protection](https://
|
|
18
|
-
* Built-in [error handling](https://
|
|
16
|
+
* Target different [time zones](https://croner.56k.guru/usage/examples.html#time-zone).
|
|
17
|
+
* Built-in [overrun protection](https://croner.56k.guru/usage/examples.html#overrun-protection)
|
|
18
|
+
* Built-in [error handling](https://croner.56k.guru/usage/examples.html#error-handling)
|
|
19
19
|
* Includes [TypeScript](https://www.typescriptlang.org/) typings.
|
|
20
20
|
* Support for asynchronous functions.
|
|
21
21
|
* Pause, resume, or stop execution after a task is scheduled.
|
|
@@ -44,14 +44,14 @@ Cron('2024-01-23T00:00:00', { timezone: 'Asia/Kolkata' }, () => { console.log('Y
|
|
|
44
44
|
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
More [examples](https://
|
|
47
|
+
More [examples](https://croner.56k.guru/usage/examples.html)...
|
|
48
48
|
|
|
49
49
|
## Installation
|
|
50
50
|
|
|
51
|
-
Full documentation on installation and usage is found at <https://
|
|
51
|
+
Full documentation on installation and usage is found at <https://croner.56k.guru>
|
|
52
52
|
|
|
53
53
|
> **Note**
|
|
54
|
-
> If you are migrating from a different library such as `cron` or `node-cron`, or upgrading from a older version of croner, see the [migration section](https://
|
|
54
|
+
> If you are migrating from a different library such as `cron` or `node-cron`, or upgrading from a older version of croner, see the [migration section](https://croner.56k.guru/migration.html) of the manual.
|
|
55
55
|
|
|
56
56
|
Install croner using your favorite package manager or CDN. then include it in you project:
|
|
57
57
|
|
|
@@ -230,6 +230,7 @@ Because the existing ones are not good enough. They have serious bugs, use bloat
|
|
|
230
230
|
| Range (0-13) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
231
231
|
| Stepping (*/5) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
232
232
|
| Last day of month (L) | ✓ | ✓ | | | |
|
|
233
|
+
| Nth weekday of month (#) | ✓ | ✓ | | | |
|
|
233
234
|
|
|
234
235
|
<details>
|
|
235
236
|
<summary>In depth comparison of various libraries</summary>
|
|
@@ -297,14 +298,16 @@ npm install croner@dev
|
|
|
297
298
|
|
|
298
299
|
A list of fixes and features currently released in the `dev` branch is available [here](https://github.com/Hexagon/croner/issues?q=is%3Aopen+is%3Aissue+label%3Areleased-in-dev)
|
|
299
300
|
|
|
300
|
-
|
|
301
|
+
## Contributing & Support
|
|
301
302
|
|
|
302
|
-
|
|
303
|
+
Croner is founded and actively maintained by Hexagon. If you find value in Croner and want to contribute:
|
|
303
304
|
|
|
304
|
-
|
|
305
|
+
- Code Contributions: See our [Contribution Guide](https://croner.56k.guru/contributing.html) for details on how to contribute code.
|
|
305
306
|
|
|
306
|
-
|
|
307
|
+
- Sponsorship and Donations: See [github.com/sponsors/hexagon](https://github.com/sponsors/hexagon)
|
|
308
|
+
|
|
309
|
+
Your trust, support, and contributions drive the project. Every bit, irrespective of its size, is deeply appreciated.
|
|
307
310
|
|
|
308
311
|
## License
|
|
309
312
|
|
|
310
|
-
MIT License
|
|
313
|
+
MIT License
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "croner",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"description": "Trigger functions and/or evaluate cron expressions in JavaScript. No dependencies. Most features. All environments.",
|
|
5
5
|
"author": "Hexagon <github.com/hexagon>",
|
|
6
6
|
"homepage": "https://hexagon.github.io/croner",
|