{"id":19974414,"url":"https://github.com/alanchenchen/hotload-cli","last_synced_at":"2025-08-12T00:32:53.847Z","repository":{"id":57266835,"uuid":"145814150","full_name":"alanchenchen/hotload-cli","owner":"alanchenchen","description":"A CLI to run a javascrpit or cmd by hot-reloading","archived":false,"fork":false,"pushed_at":"2020-05-18T09:57:10.000Z","size":23,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-09T08:15:55.580Z","etag":null,"topics":["cli","hot-reload","hotload","node","nodejs"],"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/alanchenchen.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":"2018-08-23T07:00:04.000Z","updated_at":"2025-03-01T00:12:31.000Z","dependencies_parsed_at":"2022-08-25T03:41:18.409Z","dependency_job_id":null,"html_url":"https://github.com/alanchenchen/hotload-cli","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/alanchenchen/hotload-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanchenchen%2Fhotload-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanchenchen%2Fhotload-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanchenchen%2Fhotload-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanchenchen%2Fhotload-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alanchenchen","download_url":"https://codeload.github.com/alanchenchen/hotload-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanchenchen%2Fhotload-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269721326,"owners_count":24464472,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cli","hot-reload","hotload","node","nodejs"],"created_at":"2024-11-13T03:14:57.316Z","updated_at":"2025-08-12T00:32:53.819Z","avatar_url":"https://github.com/alanchenchen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hotload-cli\n\n[![](https://img.shields.io/npm/v/hotload-cli.svg)](https://www.npmjs.com/package/hotload-cli)\n![](https://img.shields.io/npm/dt/hotload-cli.svg)\n![](https://img.shields.io/github/license/alanchenchen/hotload-cli.svg)\n\n\u003e A CLI to run a javascrpit or cmd by hot-reloading\n\n\u003e version:  0.2.0\n\n\u003e Author:  Alan Chen\n\n\u003e Date: 2019/09/01\n\n[中文文档](./ChineseREADME.md)\n\n## Features\n1. support watching nodejs and reloading itself。\n2. support watching any kind of file or a directory and reloading another nodejs。\n3. support watching any kind of file or a directory and reloading another command。\n4. support reloading nodejs with process arguments。\n5. good performance and cpu/memory occupancy。\n6. there are two node processes occupied at most while you use CLI。\n\n\n## Usage Help\n* `npm install -g hotload-cli` install npm package globally. \n* input the `hotload` or `hotload -h` or `hotload --help` in your cmd or terminal\n``` bash\n$ hotload\n\n  Usage: hotload \u003cfile | directory\u003e [--cmd] [--load] [--param] \u003cargs\u003e\n\n    A tool for hot-reloading nodejs\n\n  Options:\n\n    --param, -p      hot-reload with some arguments\n    --load, -l       watch file or directory but hot-reload anohter nodejs\n    --cmd, -c        watch file or directory but hot-reload a cmd\n    -V, --version    output the version number\n    -h, --help       output usage information\n```\n\n## Options\n### -V | --version \nshow the version number of CLI\n``` bash\n$ hotload -V\n\n0.1.0\n```\n\n### -h | --help \nshow the usage information of CLI\n``` bash\n$ hotload --cmd -h\n\n  Usage: hotload \u003cfile | directory\u003e --cmd \u003ccommands\u003e\n\n  Example:\n\n    # watch a nodejs but reload with outputing node version to stdout\n    $ hotload std.js --cmd node -v\n\n    # watch a file but reload with outputing node version to stdout\n    $ hotload index.css --cmd node -v\n\n    # watch a directory but reload with outputing node version to stdout\n    $ hotload ./example --cmd node -v\n\nhotload must be before a valid file or directory path\n```\n\n### --load | -l\nwatch any kind of file or a directory but reloading another nodejs\n``` bash\n$ hotload server.js --load router.js\n\nhotload is starting with server.js\ncommand is reloading...\nserver is running at http://localhost:3000\n```\n\n### --cmd | -c\nwatch any kind of file or a directory but reloading another command\n``` bash\n$ hotload server.js --cmd node -v\n\nhotload is starting with server.js\nv8.11.1\n```\n\n### --param | -p\nreload nodejs with process arguments\n``` bash\n$ hotload server.js --param hello world\n\nhotload is starting with server.js\ncommand is reloading...\n```\n\n## Attentions\n* hotload must be before a valid file or directory path\n\n## To do\n1. support watching dependence modules file in a nodejs\n\n## license\n* MIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falanchenchen%2Fhotload-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falanchenchen%2Fhotload-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falanchenchen%2Fhotload-cli/lists"}