{"id":15756880,"url":"https://github.com/jongha/cron-js","last_synced_at":"2025-03-31T08:25:43.352Z","repository":{"id":16272976,"uuid":"19021267","full_name":"jongha/cron-js","owner":"jongha","description":"Cron is a time-based job scheduler in Linux. cron-js is daemon to execute scheduled commands using JavaScript on your webpage. The script depends on the local time of the operating system. Because it is running based on the web browser which running on client side. This script can make easier and more flexible development than server side script.","archived":false,"fork":false,"pushed_at":"2014-05-04T12:52:41.000Z","size":236,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T07:59:12.455Z","etag":null,"topics":["cron","cron-js","javascript","minutes","webpage"],"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/jongha.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}},"created_at":"2014-04-22T07:42:46.000Z","updated_at":"2020-05-24T16:39:50.000Z","dependencies_parsed_at":"2022-09-04T23:00:56.534Z","dependency_job_id":null,"html_url":"https://github.com/jongha/cron-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongha%2Fcron-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongha%2Fcron-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongha%2Fcron-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongha%2Fcron-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jongha","download_url":"https://codeload.github.com/jongha/cron-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246438309,"owners_count":20777402,"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-js","javascript","minutes","webpage"],"created_at":"2024-10-04T09:03:05.563Z","updated_at":"2025-03-31T08:25:43.331Z","avatar_url":"https://github.com/jongha.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cron-js\n\nCron is a time-based job scheduler in Linux. cron-js is daemon to execute scheduled commands using JavaScript on your webpage. The script depends on the local time of the operating system. Because it is running based on the web browser which running on client side. This script can make easier and more flexible development than server side script.\n\n## Description\n\n```\ncron.add([date], [exec]);\n```\n\n* date\n  * The time and date fields are\n   * minute: 0-59\n   * hour: 0-23\n   * day of month: 1-31\n   * month: 1-12\n   * day of week: 0-7 (0 is Sunday)\n\n* exec\n  * url or function\n\n## Examples\n\n```\ncron.add(\"`Minute` `Hour` `Day of month` `Month` `Day of week`\", `Exec`);\n\ncron.start(); // start cron\n\ncron.stop(); // stop cron\n```\n\n## Usage\n\n### For every minute\n\n```\ncron.add(\"* * * * *\", function() { console.log(\"exec\"); });\n\ncron.start();\n```\n\n### For every 5 minute\n\n```\ncron.add(\"*/5 * * * *\", function() { console.log(\"exec\"); });\n\ncron.start();\n```\n\n### For every 5 minute and Sunday\n\n```\ncron.add(\"*/5 * * * 0\", function() { console.log(\"exec\"); });\n\ncron.start();\n```\n\n### For every minute URL call\n\n```\ncron.add(\"* * * * *\", \"http://[YOURURL]\");\n\ncron.start();\n```\n\n## License\n\ncron-js is available under the terms of the MIT License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongha%2Fcron-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjongha%2Fcron-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongha%2Fcron-js/lists"}