0.0.4 • Published 2 years ago
crontab-sentence v0.0.4
Crontab Sentence
A simple function that transforms sentences into cron expressions. Sentences syntax is inspired by crontab.guru
Installation
yarn add crontab-sentence
Usage
Make sure to check-out tests to see what's supported.
import sentenceToCron from 'crontab-sentence'
console.log(sentenceToCron('At 22:00 on every 3rd day-of-month')) //=> 00 22 */3 * *
Disclaimer
This module is not intended to be used in a production environment. It is buggy and may not correctly parse every "sentence"