
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
CronDate is a small JavaScript class to create and manage cron-friendly dates.
Cron is a very powerful tool. CronDate is only a JavaScript class that can manipulate (JavaScript objects that represent) dates that are cron-friendly.
A cron-friendly date is a date representation that fits the type of date representations that cron expects to find.
CronDate was made in order to be combined with other tools, or directly with cron itself. So, in a few words, to ease the management of dates that follow the cron format.
Note: there are different implementations of cron. We use as reference the standard cron syntax.
You can install CronDate from NPM. From your command-line, type:
~$ npm install crondate
var CronDate = require("crondate");
var crondate1 = new CronDate();
var crondate2 = CronDate();
var crondate3 = CronDate({
minute: 5,
hour: 3,
day: 5,
month: 10,
dayOfWeek: 1
});
crondate1.set({
day: 25,
month: 12,
hour: "*",
minute: 0
});
var cronRef1 = crondate1.asString();
// Expect: "0 * 25 12 *"
{minute} {hour} {day} {month} {day of the week}
0 * * * *
Which means:
for minute 0 of every hour, of every day, of every month and in any day of the week
You can use this method to change the minute, hour, day, month or dayOfWeek of the current {CronDate} instance.
overrider: {Object} set of properties and values to be added to the CronDate instance. Mainly, you will want to modify: minute, hour, day, month, dayOfWeek.The {CronDate} instance itself.
With this method, you can obtain the {CronDate} instance representation, in a cron-friendly format.
A {String} representing the current state of this {CronDate} instance, but in a cron-friendly format.
minute: by default 0.
hour: by default *.
day: by default *.
month: by default *.
dayOfWeek: by default *.
FAQs
Class to create and manage cron-friendly dates.
We found that crondate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.