1.0.2 • Published 1 year ago

cronstruct v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Cronstruct

Construct cron expressions in a more human-readable way.

Features

  • Written using Typescript (and thus fully typed, supporting TypeScript and JavaScript).
  • Lightweight.
  • Suports ESM and CJS.

Installation

# npm
npm i cronstruct

# yarn
yarn add cronstruct

Usage

The following examples use TypeScript and ESM import ... from ..., but it works the same with JavaScript and/or CJS.

Create a new instance:

import Cronstruct from 'cronstruct'
const cron = new Cronstruct()

Set any part of the expression:

new Cronstruct()
	.minute.at( 15 )
	.hour.every( 1 )
	// 15 */1 * * *
1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago