croner 8.1.1 → 9.0.0-dev.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 +6 -6
- package/dist/croner.cjs +1174 -0
- package/dist/croner.d.cts +487 -0
- package/dist/croner.d.ts +487 -0
- package/dist/croner.js +1147 -0
- package/dist/croner.umd.js +1171 -0
- package/package.json +14 -35
- package/dist/croner.min.cjs +0 -1
- package/dist/croner.min.js +0 -1
- package/dist/croner.umd.min.js +0 -1
- package/types/croner.d.cts +0 -319
- package/types/croner.d.ts +0 -320
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Trigger functions or evaluate cron expressions in JavaScript or TypeScript. No d
|
|
|
5
5
|
|
|
6
6
|
# Croner - Cron for JavaScript and TypeScript
|
|
7
7
|
|
|
8
|
-
[](https://badge.fury.io/js/croner) [](https://badge.fury.io/js/croner) [](https://jsr.io/@hexagon/croner) [](https://www.npmjs.org/package/croner)
|
|
9
9
|
 [](https://github.com/Hexagon/croner/blob/master/LICENSE)
|
|
10
10
|
|
|
11
11
|
* Trigger functions in JavaScript using [Cron](https://en.wikipedia.org/wiki/Cron#CRON_expression) syntax.
|
|
@@ -53,7 +53,7 @@ Full documentation on installation and usage is found at <https://croner.56k.gur
|
|
|
53
53
|
> **Note**
|
|
54
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/) of the manual.
|
|
55
55
|
|
|
56
|
-
Install croner using your favorite package manager or CDN
|
|
56
|
+
Install croner using your favorite package manager or CDN, then include it in you project:
|
|
57
57
|
|
|
58
58
|
Using Node.js or Bun
|
|
59
59
|
|
|
@@ -69,10 +69,10 @@ Using Deno
|
|
|
69
69
|
|
|
70
70
|
```typescript
|
|
71
71
|
// From deno.land/x
|
|
72
|
-
import { Cron } from "https://deno.land/x/croner@8.1.
|
|
72
|
+
import { Cron } from "https://deno.land/x/croner@8.1.2/dist/croner.js";
|
|
73
73
|
|
|
74
74
|
// ... or jsr.io
|
|
75
|
-
import { Cron } from "jsr:@hexagon/croner@8.1.
|
|
75
|
+
import { Cron } from "jsr:@hexagon/croner@8.1.2";
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
In a webpage using the UMD-module
|
|
@@ -89,7 +89,7 @@ Cron takes three arguments
|
|
|
89
89
|
|
|
90
90
|
* [pattern](#pattern)
|
|
91
91
|
* [options](#options) (optional)
|
|
92
|
-
*
|
|
92
|
+
* scheduled function (optional)
|
|
93
93
|
|
|
94
94
|
```javascript
|
|
95
95
|
// Parameters
|
|
@@ -306,4 +306,4 @@ Your trust, support, and contributions drive the project. Every bit, irrespectiv
|
|
|
306
306
|
|
|
307
307
|
## License
|
|
308
308
|
|
|
309
|
-
MIT License
|
|
309
|
+
MIT License
|