{"id":15664650,"url":"https://github.com/lirantal/cron-to-quartz","last_synced_at":"2025-05-05T23:25:09.037Z","repository":{"id":46774808,"uuid":"48604142","full_name":"lirantal/cron-to-quartz","owner":"lirantal","description":"Node.js library to convert unix or linux CRON syntax to Quartz Scheduler","archived":false,"fork":false,"pushed_at":"2023-03-08T18:44:20.000Z","size":317,"stargazers_count":16,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T18:16:54.349Z","etag":null,"topics":["cron","cron-notation","cron-syntax","nodejs","quartz-scheduler"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lirantal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-26T08:13:50.000Z","updated_at":"2025-03-04T08:19:09.000Z","dependencies_parsed_at":"2024-06-19T06:17:33.699Z","dependency_job_id":"ae5d1a19-0c18-4563-a8df-509e64989945","html_url":"https://github.com/lirantal/cron-to-quartz","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirantal%2Fcron-to-quartz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirantal%2Fcron-to-quartz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirantal%2Fcron-to-quartz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lirantal%2Fcron-to-quartz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lirantal","download_url":"https://codeload.github.com/lirantal/cron-to-quartz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252591726,"owners_count":21773138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cron","cron-notation","cron-syntax","nodejs","quartz-scheduler"],"created_at":"2024-10-03T13:43:41.033Z","updated_at":"2025-05-05T23:25:09.020Z","avatar_url":"https://github.com/lirantal.png","language":"JavaScript","funding_links":[],"categories":["Projects by main language"],"sub_categories":["Old Projects"],"readme":"[![view on npm](http://img.shields.io/npm/v/cron-to-quartz.svg)](https://www.npmjs.org/package/cron-to-quartz)\n[![view on npm](http://img.shields.io/npm/l/cron-to-quartz.svg)](https://www.npmjs.org/package/cron-to-quartz)\n[![npm module downloads](http://img.shields.io/npm/dt/cron-to-quartz.svg)](https://www.npmjs.org/package/cron-to-quartz)\n[![Build Status](https://github.com/lirantal/cron-to-quartz/workflows/CI/badge.svg)](https://github.com/lirantal/cron-to-quartz/actions?workflow=main)\n[![Coverage Status](https://coveralls.io/repos/github/lirantal/cron-to-quartz/badge.svg?branch=master)](https://coveralls.io/github/lirantal/cron-to-quartz?branch=master)\n[![Known Vulnerabilities](https://snyk.io/test/github/lirantal/cron-to-quartz/badge.svg)](https://snyk.io/test/github/lirantal/cron-to-quartz)\n[![Security Responsible Disclosure](https://img.shields.io/badge/Security-Responsible%20Disclosure-yellow.svg)](./SECURITY.md)\n\n[![cron-to-quartz](https://snyk.io/advisor/npm-package/cron-to-quartz/badge.svg)](https://snyk.io/advisor/npm-package/cron-to-quartz)\n\n# cron-to-quartz\n\nNode.js JavaScript library to convert unix or linux CRON syntax to [Quartz Scheduler](http://www.quartz-scheduler.org)\n\n# Install\n\n## Pre-requisite\n\n- Node.js\n\n## As a dependency of another project\n\nInstall the module as a dependency in your project so you can easily require it and use it as a library\n\n```javascript\nyarn add cron-to-quartz\n```\n\n## As a library to use\n\nTo use the `cron-to-quartz` as a library to work with and explore, you should clone the repository and install required modules.\n\n- Note: the node.js `grunt` task runner is required as a build tool for the library\n\n```bash\ngit clone https://github.com/lirantal/cron-to-quartz.git\ncd cron-to-quartz\nyarn install\n```\n\nYou can then run the test suite:\n\n```bash\nyarn run test\n```\n\n# Usage\n\nIn your NodeJS projects, simply require this library:\n\n```javascript\nvar C2Q = require(\"../index.js\");\n```\n\nThen you can just query the `C2Q` object with any cron notation as seen in the following examples:\n\n```javascript\nvar quartz = C2Q.getQuartz(\"@hourly\");\nvar quartz = C2Q.getQuartz(\"0 0,12 1 */2 *\");\nvar quartz = C2Q.getQuartz(\"00 11,13 * * *\");\n```\n\n## Special cases\n\nThe 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:\n\n```javascript\nvar quartz = C2Q.getQuartz(\"0 4 15-21 * 1\");\n```\n\n# Resources\n\n[CronMaker](http://www.cronmaker.com) is an online web-based utility to help build and test expressions that are compatible with the [Quartz](http://www.quartz-scheduler.org) open source schedule.\n[cron.guru](http://crontab.guru) is an online web-based utility to translate a valid Linux CRON expression to an actual human readable schedule\n[Quartz Scheduler Developer Guide](https://quartz-scheduler.org/generated/2.2.2/pdf/Quartz_Scheduler_Developer_Guide.pdf)\n\n# Author\n\nLiran Tal \u003cliran.tal@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flirantal%2Fcron-to-quartz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flirantal%2Fcron-to-quartz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flirantal%2Fcron-to-quartz/lists"}