cronmatch
cronmatch checks if a date/time is matched by a cron expression.
Usage
The match
method accepts two parameters:
- a cron expression
- a date (or something that can be converted to a date)
const cronmatch = // If the minute of the current time is divisible by 5, do somethingif cronmatch ... // Execute the following code only on a wednesday or on the 29 of Februaryif cronmatch ...