You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bindings for [node-cron](https://github.com/kelektiv/node-cron), a tool that allows you to execute _something_ on a schedule. This is typically done using the cron syntax:
6
+
Bindings for [node-cron](https://github.com/kelektiv/node-cron), a tool that
7
+
allows you to execute _something_ on a schedule. This is typically done using
8
+
the cron syntax:
7
9
8
10
```
9
11
* * * * * *
@@ -17,26 +19,28 @@ Bindings for [node-cron](https://github.com/kelektiv/node-cron), a tool that all
17
19
└───────────────────────── second (0 - 59, OPTIONAL)
18
20
```
19
21
20
-
Learn more about the syntax at [crontab.guru](https://crontab.guru/) (NB it does not have the seconds parameter and months start at 1 (this lib has 0-indexed months)).
22
+
Learn more about the syntax at [crontab.guru](https://crontab.guru/) (NB it does
23
+
not have the seconds parameter and months start at 1 (this lib has 0-indexed
24
+
months)).
21
25
22
26
## Getting started
23
27
24
28
```
25
-
yarn add bs-cron
29
+
yarn add rescript-cron
26
30
```
27
31
28
-
Then add `bs-cron` as a dependency to `bsconfig.json`:
32
+
Then add `rescript-cron` as a dependency to `bsconfig.json`:
29
33
30
34
```diff
31
35
"bs-dependencies": [
32
-
+ "bs-cron"
36
+
+ "rescript-cron"
33
37
]
34
38
```
35
39
36
40
## Example
37
41
38
42
```reason
39
-
open BsCron
43
+
open RescriptCron
40
44
41
45
// Make a job that will fire every second when started
42
46
let job =
@@ -59,15 +63,20 @@ setTime(job, time);
59
63
start(job);
60
64
```
61
65
62
-
[The tests](https://github.com/mikaello/bs-node-cron/tree/master/__tests__) have more examples of how to use these bindings.
[_node-schedule_](https://github.com/node-schedule/node-schedule) is a JS library similar to [_node-cron_](https://github.com/kelektiv/node-cron) (which this library is bindings for).
80
+
[_node-schedule_](https://github.com/node-schedule/node-schedule) is a JS
81
+
library similar to [_node-cron_](https://github.com/kelektiv/node-cron) (which
0 commit comments