{"id":20299497,"url":"https://github.com/yuis-ice/node-cron-cli","last_synced_at":"2025-04-11T13:14:34.523Z","repository":{"id":51388799,"uuid":"330428690","full_name":"yuis-ice/node-cron-cli","owner":"yuis-ice","description":"Command Line Implementation for Node Cron Under 20 Lines. ","archived":false,"fork":false,"pushed_at":"2021-07-16T10:53:04.000Z","size":8,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T09:47:28.555Z","etag":null,"topics":["cli","cli-app","command-line","cron","nodejs"],"latest_commit_sha":null,"homepage":"https://yuis-programming.com/nodecroncli-app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuis-ice.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":"2021-01-17T15:58:08.000Z","updated_at":"2024-12-05T17:11:40.000Z","dependencies_parsed_at":"2022-09-02T06:30:17.959Z","dependency_job_id":null,"html_url":"https://github.com/yuis-ice/node-cron-cli","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/yuis-ice%2Fnode-cron-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuis-ice%2Fnode-cron-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuis-ice%2Fnode-cron-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuis-ice%2Fnode-cron-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuis-ice","download_url":"https://codeload.github.com/yuis-ice/node-cron-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248406600,"owners_count":21098254,"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":["cli","cli-app","command-line","cron","nodejs"],"created_at":"2024-11-14T16:15:00.258Z","updated_at":"2025-04-11T13:14:34.497Z","avatar_url":"https://github.com/yuis-ice.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Node Cron CLI\n\nCommand Line Implementation for Node Cron Under 20 Lines.\n\n## Quick Start\n\nThis will execute your specified command `pwd` each 2 seconds.\n\n```\n$ croncli -p \"*/2 * * * * *\" -e \"pwd\" --log\n```\n\nThe output be like:\n\n```\nJobs started...\n[*/2 * * * * *] Job fired: 05/12/2021, 08:42:28 PM GMT+9\n/home/ubuntu\n[*/2 * * * * *] Job fired: 05/12/2021, 08:42:30 PM GMT+9\n/home/ubuntu\n[*/2 * * * * *] Job fired: 05/12/2021, 08:42:32 PM GMT+9\n/home/ubuntu\n```\n\n## Installation\n\n```\nnpm i --global node-cron-cli\n```\n\n## Examples\n\nEvery hour\n```\n0 0 * * * *\n```\n\nEvery day\n```\n0 0 0 * * *\n```\n\nEvery 4 hours\n```\n0 0 */4 * * *\n```\n\nEvery day at 11am and 11pm\n```\n0 0 11,23 * * *\n```\n\nFor more info, see [kelektiv/node-cron](https://github.com/kelektiv/node-cron)\n\n## Command line options\n\n```\n$ ./cron-cli.js\nUsage: cron-cli [options]\n\nOptions:\n  -p, --pattern \u003cpattern\u003e    cron pattern  (default: \"*/5 * * * * *\")\n  -t, --timezone \u003ctimezone\u003e  timezone  (default: \"Asia/Tokyo\")\n  -e, --execute \u003ccommand\u003e    command to be executed  (default: \"echo Hi.\")\n  -l, --log                  enable console log\n  -h, --help                 display help for command\n```\n\n## LICENSE\n\nThis software is released under the BSD-3-Clause license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuis-ice%2Fnode-cron-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuis-ice%2Fnode-cron-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuis-ice%2Fnode-cron-cli/lists"}