{"id":22916468,"url":"https://github.com/buglss/cronjo","last_synced_at":"2026-04-18T01:02:37.011Z","repository":{"id":58481366,"uuid":"525105186","full_name":"buglss/cronjo","owner":"buglss","description":"Lets you create scheduled jobs. Unlike other packages, it uses the power of the cronti package. So you don't need to master crontime expressions to create scheduled jobs.","archived":false,"fork":false,"pushed_at":"2024-05-05T20:45:27.000Z","size":92,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-26T08:44:15.070Z","etag":null,"topics":["cron","cronjo","cronjob","crontab","cronti","crontime","javascript","nodejs","npm","schedule"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buglss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-15T19:00:21.000Z","updated_at":"2024-05-05T20:45:30.000Z","dependencies_parsed_at":"2025-02-07T07:38:17.040Z","dependency_job_id":null,"html_url":"https://github.com/buglss/cronjo","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/buglss/cronjo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buglss%2Fcronjo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buglss%2Fcronjo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buglss%2Fcronjo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buglss%2Fcronjo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buglss","download_url":"https://codeload.github.com/buglss/cronjo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buglss%2Fcronjo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31952208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"ssl_error","status_checked_at":"2026-04-18T00:39:20.671Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","cronjo","cronjob","crontab","cronti","crontime","javascript","nodejs","npm","schedule"],"created_at":"2024-12-14T06:12:59.345Z","updated_at":"2026-04-18T01:02:36.988Z","avatar_url":"https://github.com/buglss.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![en-EN](https://img.shields.io/badge/*EN-English-blue?style=plastic)](README.md)\r\n[![tr-TR](https://img.shields.io/badge/TR-Turkish-red?link=README.tr-TR.md)](README.tr-TR.md)\r\n\r\n![nodejs](https://img.shields.io/badge/nodejs-43853d?logo=nodedotjs\u0026labelColor=fff)\r\n![npm](https://img.shields.io/badge/npm-bc2c32?logo=npm\u0026labelColor=fff)\r\n![javascript](https://img.shields.io/badge/javascript-e9d961?logo=javascript\u0026labelColor=000)\r\n![mocha](https://img.shields.io/badge/mocha-8d6849?logo=mocha\u0026labelColor=fff)\r\n[![License](https://img.shields.io/badge/License-Apache--2.0-red)](LICENSE)\r\n[![vulnerabilities](https://snyk.io/test/github/buglss/cronti/badge.svg)](https://snyk.io/test/github/buglss/cronjo/)\r\n\r\n[![NPM](https://nodei.co/npm/cronjo.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/cronjo/)\r\n\r\n# Introduction\r\n\r\nLets you create scheduled jobs. Unlike other packages, it uses the power of the [cronti](https://www.npmjs.com/package/cronti) package. So you don't need to master crontime expressions to create scheduled jobs.\r\n\r\nUnlike other packages that do similar work, it does not require mastery of crontime expressions. In this regard, other packages also have date input support. But you have to calculate and enter this date yourself. You don't need to do such a calculation in the [cronjo](https://www.npmjs.com/package/cronjo) package. Because it uses the power of the [cronti](https://www.npmjs.com/package/cronti) package.\r\n\r\nWith the power of the [cronti](https://www.npmjs.com/package/cronti) package, you can create scheduled jobs with scheduling/timing expressions used in daily life.\r\n\r\n# Install\r\n\r\nUsing npm:\r\n\r\n```bash\r\nnpm i cronjo # Locale Install. For use in spesific project.\r\nnpm i -g cronjo # Global Install. For use in general projects.\r\n```\r\n\r\nNote: Add `--save` if you are using npm \u003c 5.0.0\r\n\r\n# Quick Start\r\n\r\n```js\r\n// Include Package\r\nconst cronjo = require(\"cronjo\")\r\n\r\n// Create Scheduled Job\r\nlet schedule = cronjo((scheduleId) =\u003e { console.log(\"OK\", scheduleId) }, \"19 * * * *\")\r\n\r\n// Available Features\r\nconsole.log(schedule.id)\r\nconsole.log(schedule.expression)\r\nconsole.log(schedule.job)\r\nconsole.log(schedule.firstDayOfWeek)\r\nconsole.log(schedule.name)\r\nconsole.log(schedule.fireDate)\r\nconsole.log(schedule.nextDates)\r\nconsole.log(schedule.cancel)\r\n\r\n// Scheduled Jobs\r\nconsole.log(cronjo())\r\n\r\n// Helper Functions\r\nconsole.log(cronjo(\"HELPERS\"))\r\nconsole.log(cronjo({method: \"HELPERS\" /* OR method: -1*/}))\r\n```\r\n\r\nWith the [cronti](https://www.npmjs.com/package/cronti) package features:\r\n\r\n```js\r\n// Include Package\r\nconst cronjo = require(\"cronjo\")\r\n\r\n// Create Scheduled Job to Run Regularly Between Two Dates\r\nlet schedule = cronjo({\r\n    job(scheduleId) { console.log(\"OK\", scheduleId) },\r\n    method: \"onIntervalTime\" // OR -\u003e method: 1\r\n}, \"2022-04-25T09:30:00.000Z\", \"2022-05-15T09:30:00.000Z\")\r\n\r\n// Create Scheduled Job with Valid Crontime Expression\r\nlet schedule = cronjo({\r\n    job(scheduleId) { console.log(\"OK\", scheduleId) },\r\n    method: \"onCrontime\" // OR -\u003e method: 3\r\n}, \"0 2 * * *\")\r\n\r\n// Create Scheduled Job for a Specific Date\r\nlet schedule = cronjo({\r\n    job(scheduleId) { console.log(\"OK\", scheduleId) },\r\n    method: \"onDate\" // OR -\u003e method: 4\r\n}, \"2022-05-26T09:30:00.000Z\")\r\n\r\n// Create Scheduled Job with Various Combinations of Month, Week, Day of the Week, Time, and Tick Parameters\r\nlet schedule = cronjo({\r\n    job(scheduleId) { console.log(\"OK\", scheduleId) },\r\n    method: \"onTime\" // OR -\u003e method: 2\r\n}, \"0FD\", \"4M\", \"2W\", \"3WD\")\r\n\r\n// Create Scheduled Job for Week in Date \r\nlet schedule = cronjo({\r\n    job(scheduleId) { console.log(\"OK\", scheduleId) },\r\n    method: \"onWeek\" // OR -\u003e method: 0\r\n}, \"2022-05-26T09:30:00.000Z\")\r\n\r\n// Available Features\r\nconsole.log(schedule.id)\r\nconsole.log(schedule.expression)\r\nconsole.log(schedule.job)\r\nconsole.log(schedule.firstDayOfWeek)\r\nconsole.log(schedule.name)\r\nconsole.log(schedule.fireDate)\r\nconsole.log(schedule.nextDates)\r\nconsole.log(schedule.cancel)\r\n\r\n// Scheduled Jobs\r\nconsole.log(cronjo())\r\n\r\n// Helper Functions\r\nconsole.log(cronjo(\"HELPERS\"))\r\nconsole.log(cronjo({method: \"HELPERS\" /* OR method: -1*/}))\r\n```\r\n\r\n# Documentation\r\n\r\nThe ``cronjo`` function can take the job function, options, or \"HELPERS\" in the first parameter, or take no value at all.\r\nIf it is used with the job function, the crontime expression should be written in the second parameter.\r\nIf used with options values, the next parameters are filled in accordance with the requirements in the [cronti](https://www.npmjs.com/package/cronti) package.\r\nIf used with \"HELPERS\" then no parameter input is needed.\r\nIf no parameter values are sent, all created scheduled jobs are returned.\r\n\r\ncronjo(\u003cjob(function)|options(object)|\"HELPERS\"(string)\u003e, \u003ccrontime(string)|...args\u003e)\r\n\r\n## job\r\n\r\nIt can be used when you want to use the crontime expression while creating a scheduled job.\r\nThe job function is entered in the first parameter.\r\nA valid crontime expression is entered in the second parameter.\r\n\r\nThe id of the scheduled job is sent to the job function as a parameter.\r\n\r\n#### Input\r\n\r\n|        Parameter        |  Type       | Require  |                                                 Description                                  |\r\n| :---------------------: | :--------: | :-------: | :------------------------------------------------------------------------------------------: |\r\n|      job                |  Function  |   yes     |                                  Function of scheduled job                                   |\r\n|      expression         |  String    |   yes     |                                      The crontime expression to set up the scheduled job     |\r\n\r\n#### Output (object)\r\n\r\n| Parameter      |  Type    |     Description                                                                |\r\n| :------------: | :------: | :----------------------------------------------------------------------------: |\r\n| id             | Number   | The id of the scheduled job                                                    |\r\n| expression     | String   | crontime expression of scheduled job                                           |\r\n| job            | Function | Function of scheduled job                                                      |\r\n| firstDayOfWeek | Number   | The starting day of the week used to set up the scheduled job                  |\r\n| name           | String   | Scheduled job name                                                             |\r\n| fireDate       | Function | Function that returns the time when the scheduled job will be triggered        |\r\n| nextDates      | Function | Function that returns a list of times when the scheduled job will be triggered |\r\n| cancel         | Function | Function that cancels scheduled job                                            |\r\n\r\n#### Example\r\n\r\n```js\r\nconst cronjo = require(\"cronjo\")\r\ncronjo((scheduleId) =\u003e { console.log(\"OK\", scheduleId) }, \"0 12 * * *\")\r\n```\r\n\r\n## options\r\n\r\n4 features are offered. These are called method, job, name, and firstDayOfWeek.\r\n\r\n|    Feature     |                                             Description                                             |\r\n| :------------: | :-------------------------------------------------------------------------------------------------: |\r\n|     method     |                        The ``cronti`` method to use when creating the scheduled job                 |\r\n|     job        |           Function of scheduled job                                                                 |\r\n|     name       | Scheduled job name                                                                                  |\r\n| firstDayOfWeek |                    The starting day of the week used to set up the scheduled job                    |\r\n\r\n## options.method\r\n\r\nFeatures brought by [cronti](https://www.npmjs.com/package/cronti) package are discussed. The only difference is in the \"HELPERS\" method.\r\nThis method returns the helper functions from the ``cronjo`` package.\r\n\r\n|    Method       | Index |      Name        |                                             Description                                                |\r\n| :------------: | :---:  | :------------: | :------------------------------------------------------------------------------------------------------: |\r\n|     onWeek     |   0    |     onWeek     |                        Creates scheduled work for the week the date is in                                |\r\n| onIntervalTime |   1    | onIntervalTime |           Creates a scheduled job that will run periodically between two dates                           |\r\n|     onTime     |   2    |     onTime     | Creates scheduled work with various combinations of month, week, day of the week, hour, minute and tick  |\r\n|   onCrontime   |   3    |   onCrontime   |                    Creates scheduled job based on current crontime statement                             |\r\n|     onDate     |   4    |     onDate     |                           Creates scheduled job for a specific date                                      |\r\n|     HELPERS    |   -1   |     HELPERS    |                           Returns helper functions in cronjo package                                     |\r\n\r\n## options.method.onWeek\r\n\r\nUsed to create a scheduled job that will be triggered every day in the week of the entered date.\r\nCreates the scheduled job that will be triggered before the entered date based on the tick value.\r\n\r\nA valid date value must be sent as a parameter. Any numeric value can be used for the tick value.\r\n\r\n#### Input\r\n\r\n|        Parameter        |  Type   | Require |                                                 Description                                                 |\r\n| :---------------------: | :----: | :--------: | :------------------------------------------------------------------------------------------------------: |\r\n|      args.\\\u003cdate\\\u003e      |  Date  |    yes    |                                  Crontime ifadesi için haftanın tarihi                                   |\r\n|      args.\\\u003ctick\\\u003e      | Number |   no    |                                      Tarihten çıkarılacak gün sayıs                                      |\r\n| args.\\\u003cfirstDayOfWeek\\\u003e | String |   no    | Haftanın ilk günü. 0 ile 6 arasında değerler alır. \u003csayı\u003eFD değerini alır. Varsayılan değer pazartesidir |\r\n\r\n#### Output (object)\r\n\r\n| Parameter      |  Type    |     Description                                                                |\r\n| :------------: | :------: | :----------------------------------------------------------------------------: |\r\n| id             | Number   | The id of the scheduled job                                                    |\r\n| expression     | String   | crontime expression of scheduled job                                           |\r\n| job            | Function | Function of scheduled job                                                      |\r\n| firstDayOfWeek | Number   | The starting day of the week used to set up the scheduled job                  |\r\n| name           | String   | Scheduled job name                                                             |\r\n| fireDate       | Function | Function that returns the time when the scheduled job will be triggered        |\r\n| nextDates      | Function | Function that returns a list of times when the scheduled job will be triggered |\r\n| cancel         | Function | Function that cancels scheduled job                                            |\r\n\r\n#### Example\r\n\r\n```js\r\nconst cronjo = require(\"cronjo\")\r\ncronjo({\r\n    job(scheduleId) { console.log(\"OK\", scheduleId) },\r\n    method: \"onWeek\" // OR -\u003e method: 0\r\n}, \"2022-05-26T09:30:00.000Z\")\r\n```\r\n\r\n## options.method.onIntervalTime\r\n\r\nIt is used to create a scheduled job based on the start and end date.\r\nAccording to the Step Parameter, the intervals between two dates are specified.\r\nThe Step Parameter is used in days, hours, or minutes.\r\n\r\nParameters must have 2 date values. The order of these dates is not important.\r\nThe smaller startDate will be used as the larger endDate.\r\nYou can use a string value suitable for the pattern for the Step Parameter.\r\n\r\n#### Input\r\n\r\n|     Parameter      |           Type           | Require |                  Description                   |\r\n| :----------------: | :---------------------: | :--------: | :------------------------------------------: |\r\n| args.\\\u003cstartDate\\\u003e |          Date           |    yes    |            Cron start date                    |\r\n|  args.\\\u003cendDate\\\u003e  |          Date           |    yes    |              Cron end date                    |\r\n|   args.\\\u003cstep\\\u003e    | String \u003c.d \\| .h \\| .m\u003e |   no    | Specifies which steps to run.                |\r\n\r\n#### Output (object)\r\n\r\n| Parameter      |  Type    |     Description                                                                |\r\n| :------------: | :------: | :----------------------------------------------------------------------------: |\r\n| id             | Number   | The id of the scheduled job                                                    |\r\n| expression     | String   | crontime expression of scheduled job                                           |\r\n| job            | Function | Function of scheduled job                                                      |\r\n| firstDayOfWeek | Number   | The starting day of the week used to set up the scheduled job                  |\r\n| name           | String   | Scheduled job name                                                             |\r\n| fireDate       | Function | Function that returns the time when the scheduled job will be triggered        |\r\n| nextDates      | Function | Function that returns a list of times when the scheduled job will be triggered |\r\n| cancel         | Function | Function that cancels scheduled job                                            |\r\n\r\n#### Example\r\n\r\n```js\r\nconst cronjo = require(\"cronjo\")\r\ncronjo({\r\n    job(scheduleId) { console.log(\"OK\", scheduleId) },\r\n    method: \"onIntervalTime\" // OR -\u003e method: 1\r\n}, \"2022-04-25T09:30:00.000Z\", \"2022-05-15T09:30:00.000Z\")\r\n```\r\n\r\n## options.method.onTime\r\n\r\nIt is used to create scheduled work with various combinations such as month, week, day of the week, hour, minute and tick.\r\nOnly time is a required value.\r\nAll crontime statements are set according to this time Parameter.\r\nThe job scheduled by tick value is created to be triggered before the entered date.\r\n\r\n- If only the month(0..11) and week(0,1,2,-1) Parameters are populated, the scheduled job will be created that will be triggered every day from the first day of the week to the last day of that week.\r\n- If only the month(0..11), week(0,1,2,-1) and weekDays(0..6) parameters are populated, the scheduled job for that day of the week will be created.\r\n- If only parameter week(0,1,2,-1) is populated, scheduled job will be created that will be triggered every day during that week. Except for the last week of the month(-1).\r\n- If only the month(0..11) parameter is populated, the scheduled job is created for each day in that month.\r\n- If only parameter weekDays(0..6) is populated, scheduled job will be created for this week day (Mon,Sl,Wed,Thur,cm,cm,Mon) every month.\r\n- If only the month(0..11) and weekDays(0..6) parameters are populated, the scheduled job is created for the day of this week of this month.\r\n- If no Parameters are filled, the scheduled job is created for each day of each month.\r\n\r\nA valid month, week, or weekday Parameter value can be sent.\r\nTime Parameter can be sent according to the pattern.\r\nAny numeric value can be used for the tick value.\r\n\r\n#### Input\r\n\r\n|        Parameter        |       Type       | Require |                                                 Description                                                          |\r\n| :---------------------: | :-------------: | :--------: | :----------------------------------------------------------------------------------------------------------------: |\r\n|     args.\\\u003cmonth\\\u003e      |  String \u003c..M\u003e   |   no    |            Month for the crontime expression. It takes values between 0 and 11. \u003cnumber\u003e Gets the value M.         |\r\n|      args.\\\u003cweek\\\u003e      |  String \u003c..W\u003e   |   no    |          Week for the crontime expression. It takes the values 0, 1, 2, and -1. Gets the \u003cnumber\u003eW value.          |\r\n|    args.\\\u003cweekDays\\\u003e    |  String \u003c..WD\u003e  |   no    |     The weekdays for the crontime expression. It takes values between 0 and 6. Gets the value of \u003cnumber\u003eWD.       |\r\n|      args.\\\u003ctime\\\u003e      | String \u003cdd\\:mm\u003e |   no    |                                    Time for crontime expression(dd:mm)                                             |\r\n|      args.\\\u003ctick\\\u003e      |     Number      |   no    |               The number of days to subtract from the date. Must have month and week parameters                    |\r\n| args.\\\u003cfirstDayOfWeek\\\u003e |     String      |   no    | The first day of the week. It takes values between 0 and 6. Gets the \u003cnumber\u003eFD value. The default value is monday |\r\n\r\n#### Output (object)\r\n\r\n| Parameter      |  Type    |     Description                                                                |\r\n| :------------: | :------: | :----------------------------------------------------------------------------: |\r\n| id             | Number   | The id of the scheduled job                                                    |\r\n| expression     | String   | crontime expression of scheduled job                                           |\r\n| job            | Function | Function of scheduled job                                                      |\r\n| firstDayOfWeek | Number   | The starting day of the week used to set up the scheduled job                  |\r\n| name           | String   | Scheduled job name                                                             |\r\n| fireDate       | Function | Function that returns the time when the scheduled job will be triggered        |\r\n| nextDates      | Function | Function that returns a list of times when the scheduled job will be triggered |\r\n| cancel         | Function | Function that cancels scheduled job                                            |\r\n\r\n#### Example\r\n\r\n```js\r\nconst cronjo = require(\"cronjo\")\r\ncronjo({\r\n    job(scheduleId) { console.log(\"OK\", scheduleId) },\r\n    method: \"onTime\" // OR -\u003e method: 2\r\n}, \"0FD\", \"4M\", \"2W\", \"3WD\")\r\n```\r\n\r\n## options.method.onCrontime\r\n\r\nUsed when there is a scheduled job based on the valid crontime expression.\r\n\r\n#### Input\r\n\r\n|     Parameter     |  Type   | Require |     Description      |\r\n| :---------------: | :----: | :--------: | :----------------: |\r\n| args.\\\u003ccrontime\\\u003e | String |    yes    | Crontime expression |\r\n\r\n#### Output (object)\r\n\r\n| Parameter      |  Type    |     Description                                                                |\r\n| :------------: | :------: | :----------------------------------------------------------------------------: |\r\n| id             | Number   | The id of the scheduled job                                                    |\r\n| expression     | String   | crontime expression of scheduled job                                           |\r\n| job            | Function | Function of scheduled job                                                      |\r\n| firstDayOfWeek | Number   | The starting day of the week used to set up the scheduled job                  |\r\n| name           | String   | Scheduled job name                                                             |\r\n| fireDate       | Function | Function that returns the time when the scheduled job will be triggered        |\r\n| nextDates      | Function | Function that returns a list of times when the scheduled job will be triggered |\r\n| cancel         | Function | Function that cancels scheduled job                                            |\r\n\r\n#### Example\r\n\r\n```js\r\nconst cronjo = require(\"cronjo\")\r\ncronjo({\r\n    job(scheduleId) { console.log(\"OK\", scheduleId) },\r\n    method: \"onCrontime\" // OR -\u003e method: 3\r\n}, \"0 2 * * *\")\r\n```\r\n\r\n## options.method.onDate\r\n\r\nUsed when creating a scheduled job based on the entered date value.\r\nIt is created to repeat every month or just the month of history and every year.\r\nIt is created to trigger before the entered date according to the tick value.\r\n\r\nA valid date value must be sent as a parameter.\r\n\r\n#### Input\r\n\r\n|       Parameter        |   Type   | Require   |                                  Description                                      |\r\n| :--------------------: | :-----: | :--------: | :-------------------------------------------------------------------------------: |\r\n|     args.\\\u003cdate\\\u003e      |  Date   |    yes     |                   The date used for the crontime expression                       |\r\n|     args.\\\u003ctick\\\u003e      | Number  |   no       | The number of days to subtract from the date. Must have month and week parameters |\r\n| args.\\\u003cisMonthOfDate\\\u003e | Boolean |   no       |                        Execute only in month of date                              |\r\n\r\n#### Output (object)\r\n\r\n| Parameter      |  Type    |     Description                                                                |\r\n| :------------: | :------: | :----------------------------------------------------------------------------: |\r\n| id             | Number   | The id of the scheduled job                                                    |\r\n| expression     | String   | crontime expression of scheduled job                                           |\r\n| job            | Function | Function of scheduled job                                                      |\r\n| firstDayOfWeek | Number   | The starting day of the week used to set up the scheduled job                  |\r\n| name           | String   | Scheduled job name                                                             |\r\n| fireDate       | Function | Function that returns the time when the scheduled job will be triggered        |\r\n| nextDates      | Function | Function that returns a list of times when the scheduled job will be triggered |\r\n| cancel         | Function | Function that cancels scheduled job                                            |\r\n\r\n#### Example\r\n\r\n```js\r\nconst cronjo = require(\"cronjo\")\r\ncronjo({\r\n    job(scheduleId) { console.log(\"OK\", scheduleId) },\r\n    method: \"onDate\" // OR -\u003e method: 4\r\n}, \"2022-05-26T09:30:00.000Z\")\r\n```\r\n\r\n## options.job\r\n\r\nThe function to call when the scheduled job is triggered. The id of the scheduled job is sent to this function as a parameter.\r\n\r\n## options.name\r\n\r\nThe name of the scheduled job.\r\n\r\n## options.firstDayOfWeek\r\n\r\nIt is a configuration value used in the creation of the scheduled job.\r\nUsed to set the starting day of the week.\r\nBy default, the start is Sunday.\r\n\r\n# Feedback\r\n\r\nPlease give your feedback about the package.\r\nPlease create [issues](https://github.com/buglss/cronjo/issues) when you encounter any bugs.\r\nI will respond to your feedback as soon as possible.\r\n\r\n# Authors\r\n\r\nIt is maintained by:\r\n\r\n- Levent Sencer Şahin : [LinkedIn:@buglss](https://www.linkedin.com/in/buglss/) | [Blog:@buglss](https://buglss.github.io/) | [Facebook:@cebuglssio](https://www.facebook.com/cebuglssio) | [Twitter:@cebuglss](https://twitter.com/cebuglss) | [Instagram:@cebuglss](https://www.instagram.com/cebuglss)\r\n\r\n# Copyright And License\r\n\r\nCopyright Levent Sencer Şahin and other contributors, under [the Apache-2.0](LICENSE).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuglss%2Fcronjo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuglss%2Fcronjo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuglss%2Fcronjo/lists"}