Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
cron-to-quartz
Advanced tools
Node.js JavaScript library to convert unix or linux CRON syntax to Quartz Scheduler
Node.js JavaScript library to convert unix or linux CRON syntax to Quartz Scheduler
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
To use the cron-to-quartz
as a library to work with and explore, you should clone the repository and install required modules.
grunt
task runner is required as a build tool for the librarygit 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
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 * * *");
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");
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
Liran Tal liran.tal@gmail.com
FAQs
Node.js JavaScript library to convert unix or linux CRON syntax to Quartz Scheduler
The npm package cron-to-quartz receives a total of 701 weekly downloads. As such, cron-to-quartz popularity was classified as not popular.
We found that cron-to-quartz demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.