Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cron-time-generator

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cron-time-generator

Cron Time Expression Generator

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Cron-Time

Cron Time Expression Generator/Builder

Tested on CronTab.Guru

Install

npm install cron-time

OR

yarn add cron-time

Usage

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.

Every Nth Time

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 * * *

Between

const cronTime = require('./index');

cronTime.between(1, 4).days();
// Between  1 - 4 th day of the month 

All Functions

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)

Keywords

FAQs

Package last updated on 25 Apr 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc