Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
cron-time-generator
Advanced tools
Cron Time Expression Generator/Builder
Tested on CronTab.Guru
npm install cron-time
OR
yarn add cron-time
const cronTime = require('./index');
cronTime.everyMinute();
// * * * * *
cronTime.everyHour();
// 0 * * * *
cronTime.everyDay();
// 0 0 * * *
cronTime.everyDayAt(6);
// 0 6 * * *
cronTime.everySunday();
// 0 0 * * SUN
cronTime.everySundayAt(4);
// 0 4 * * SUN
// E.T.C
Every method of CronTime
returns exactly what its name says.
const cronTime = require('./index');
cronTime.every(5).minutes();
// Every Five Minutes
cronTime.every(2).hours();
// Every 2 Hours
cronTime.every(7).days();
// Every 7 Days
cronTime.every('even').hours();
// Every Even Hours
// * */2 * * *
cronTime.every('uneven').hours();
// Every Uneven Hours
// * 1-23/2 * * *
const cronTime = require('./index');
cronTime.between(1, 4).days();
// Between 1 - 4 th day of the month
every
between
everyMinute
everyHour
everyDay
everyDayAt($hourOfTheDay)
everySunday
everySundayAt($hourOfTheDay)
everyMonday
everyMondayAt($hourOfTheDay)
everyTuesday
everyTuesdayAt($hourOfTheDay)
everyWednesday
everyWednesdayAt($hourOfTheDay)
everyThursday
everyThursdayAt($hourOfTheDay)
everyFriday
everyFridayAt($hourOfTheDay)
everySaturday
everySaturdayAt($hourOfTheDay)
everyWeek
everyWeekAt($hourOfTheDay, $dayOfTheWeek)
everyMonth
everyMonthOn($dayOfTheMonth)
everyYear
everyYearIn($monthOfTheYear)
FAQs
Cron Time Expression Generator
We found that cron-time-generator 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.