Description
NodeJS JavaScript library to convert unix or linux CRON syntax to Quartz Scheduler
cron-to-quartz alternatives and similar modules
Based on the "Command Line Utilities" category.
Alternatively, view cron-to-quartz alternatives based on common mentions on social networks and blogs.
-
nvm
Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions -
Inquirer.js
A collection of common interactive command line user interfaces. -
KeyboardJS
A JavaScript library for binding keyboard combos without the pain of key codes and key combo conflicts. -
omelette
Omelette is a simple, template based autocompletion tool for Node and Deno projects with super easy API. (For Bash, Zsh and Fish) -
log-update
Log by overwriting the previous output in the terminal. Useful for rendering progress bars, animations, etc. -
configstore
Easily load and persist config without having to think about where and how -
insight
Node.js module to help you understand how your tool is being used by anonymously reporting usage metrics to Google Analytics -
Javascript library for 2d geometry
Javascript library for 2d geometry -
string-width
Get the visual width of a string - the number of columns required to display it -
columnify
Create text-based columns suitable for console output. Supports cell wrapping. -
loud-rejection
Make unhandled promise rejections fail loudly instead of the default silent fail -
multispinner
Multiple, simultaneous, individually controllable spinners for concurrent tasks in Node.js CLI programs -
sudo-block
Block users from running your app with root permissions -
googleauth
Create and load persistent Google authentication tokens for command-line apps -
licenseye
Node.js CLI tool to visualize an aggregate list of your dependencies' licenses -
cli-columns
Columnated lists for the CLI. Unicode and ANSI safe.
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of cron-to-quartz or a related project?
README
cron-to-quartz
Node.js JavaScript library to convert unix or linux CRON syntax to Quartz Scheduler
Install
Pre-requisite
- Node.js
As a dependency of another project
Install the module as a dependency in your project so you can easily require it and use it as a library
yarn add cron-to-quartz
As a library to use
To use the cron-to-quartz
as a library to work with and explore, you should clone the repository and install required modules.
- Note: the node.js
grunt
task runner is required as a build tool for the library
git clone https://github.com/lirantal/cron-to-quartz.git
cd cron-to-quartz
yarn install
You can then run the test suite:
yarn run test
Usage
In your NodeJS projects, simply require this library:
var C2Q = require("../index.js");
Then you can just query the C2Q
object with any cron notation as seen in the following examples:
var quartz = C2Q.getQuartz("@hourly");
var quartz = C2Q.getQuartz("0 0,12 1 */2 *");
var quartz = C2Q.getQuartz("00 11,13 * * *");
Special cases
The Quartz Scheduler isn't fully compatible with the CRON notation, so while CRON allows logical OR expressions, Quartz doesn't do that. For this reason, if you provide such CRON syntax, then the C2Q
object will yield an array of 2 values:
var quartz = C2Q.getQuartz("0 4 15-21 * 1");
Resources
CronMaker is an online web-based utility to help build and test expressions that are compatible with the Quartz open source schedule. cron.guru is an online web-based utility to translate a valid Linux CRON expression to an actual human readable schedule Quartz Scheduler Developer Guide
Author
Liran Tal [email protected]