open-index/open-npm huggingface dataset:
npm package: @guilbep/cron-time-generator
Description: Cron Time Expression Generator
Author: trapcode
Latest version: 1.0.2

# Cron-Time

Cron Time Expression Generator/Builder

Tested on [CronTab.Guru](https://crontab.guru)

### Install
```console
npm install cron-time-generator
```

OR

```console
yarn add cron-time-generator
```

### Usage
```javascript
const cronTime = require('cron-time-generator');

cronTime.everyMinute();
// * * * * *

cronTime.everyHour();
// 0 * * * *

cronTime.everyDay();
// 0 0 * * *

cronTime.everyDayAt(6);
// 0 6 * * *

cronTime.everyDayAt(6, 15);
// 15 6 * * *

cronTime.everySunday();
// 0 0 * * SUN

cronTime.everySundayAt(4, 30);
// 30 4 * * SUN

// E.T.C
```

Every method of `CronTime` returns exactly what its name says.

### Every Nth Time
```javascript
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
```javascript
const cronTime = require('cron-time-generator');

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


### All Functions

`every`

`between`

`everyMinute`

`everyHour`

`everyHourAt($minute)`

`everyDay`

`everyDayAt($hourOfTheDay)`

`everySunday`

`everySundayAt($hour, $minute?)`

`everyMonday`

`everyMondayAt($hour, $minute?)`

`everyTuesday`

`everyTuesdayAt($hour, $minute?)`

`everyWednesday`

`everyWednesdayAt($hour, $minute?)`

`everyThursday`

`everyThursdayAt($hour, $minute?)`

`everyFriday`

`everyFridayAt($hour, $minute?)`

`everySaturday`

`everySaturdayAt($hour, $minute?)`

`everyWeek`

`everyWeekAt($day, $hour?, $minute?)`

`everyMonth`

`everyMonthOn($day, $hour?, $minute?)`

`everyYear`

`everyYearIn($month, $day?, $hour?, $minute?)`