aws-cron-validate
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

cron-expression validator

cron-expression validator written in TypeScript.

Usage

import cron from '<package-name>'

const cronResult = cron('* * * * *')
if (cronResult.isValid()) {
  // !cronResult.isError()
  // valid code
} else {
  // error code
}
import cron from '<package-name>'

cron('* * * * *').isValid()

cron('* * * * *').isError()

cron('* 2,3,4 * * *').isValid()

cron('0 */2 */5 * *').isValid()

Contributors


Dependents (0)

Package Sidebar

Install

npm i aws-cron-validate

Weekly Downloads

222

Version

0.0.1

License

MIT

Unpacked Size

32.5 kB

Total Files

27

Last publish

Collaborators

  • rabingaire