{"id":14989439,"url":"https://github.com/koahubjs/koahub-cli","last_synced_at":"2025-06-16T20:33:56.356Z","repository":{"id":81342656,"uuid":"77387660","full_name":"koahubjs/koahub-cli","owner":"koahubjs","description":"KoaHub CLI -- KoaHub.js的开发工具，自动babel编译 ES6/7（Generator Function, Class, Async \u0026 Await）并且文件修改后自动重启。","archived":false,"fork":false,"pushed_at":"2017-06-12T10:00:18.000Z","size":67,"stargazers_count":16,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T21:04:15.791Z","etag":null,"topics":["async","babel","koa","koa2","koahub","koahub-babel-es6","koahub-cli","koahub-demo","koajs","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koahubjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-12-26T14:05:18.000Z","updated_at":"2022-05-06T13:46:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"72e062dd-5a48-462c-833f-0226757e56b1","html_url":"https://github.com/koahubjs/koahub-cli","commit_stats":{"total_commits":40,"total_committers":1,"mean_commits":40.0,"dds":0.0,"last_synced_commit":"0b6b2667adccac724ab3c5911aa6c0c708155e02"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koahubjs%2Fkoahub-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koahubjs%2Fkoahub-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koahubjs%2Fkoahub-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koahubjs%2Fkoahub-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koahubjs","download_url":"https://codeload.github.com/koahubjs/koahub-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501897,"owners_count":21114697,"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":["async","babel","koa","koa2","koahub","koahub-babel-es6","koahub-cli","koahub-demo","koajs","node","nodejs"],"created_at":"2024-09-24T14:18:22.504Z","updated_at":"2025-04-12T01:21:50.176Z","avatar_url":"https://github.com/koahubjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 介绍\n\nKoaHub CLI -- KoaHub.js的开发工具，自动Babel编译 ES6/7（Generator Function, Class, Async \u0026 Await）并且文件修改后自动重启。\n\n## 特性\n1. ​自动重启\n2. 自动Babel编译\n3. 自动创建控制器\n4. 自动创建koahub项目\n5. 支持全局命令行\n6. 支持模块启动\n7. ...\n\n## 支持\n```js\nrequire('koahub-cli').run('start app/index.js --watch --compile');\n```\n\n## 快速创建项目\n\n```javascript\n//安装全局命令\nnpm install koahubjs/koahub-cli -g\n//快速创建项目\nkoahub create koahub-demo\n//进入项目\ncd koahub-demo\n//安装依赖\nnpm install\n//启动项目\nnpm start\n```\n\n## 安装使用\n\n```sh\n\n//安装：npm install koahubjs/koahub-cli -g\n//使用：\nkoahub\n\nUsage: koahub [options] [command]\n\nCommands:\n\nstart [options] [script]  koahub start script --watch --compile\ncontroller [name]         koahub create controller\ncreate [project]          koahub create project\n\nOptions:\n\n-h, --help     output usage information\n-V, --version  output the version number\n\nExamples:\n\nkoahub start app/index.js --watch --compile --runtime runtime (文件修改自动编译到runtime并且重启）\nkoahub controller app/controller/home/index (自动创建控制器模版）\nkoahub create koahub-demo (自动初始化项目)\n```\n\n\n## KoaHub.js\n[KoaHub.js框架](https://github.com/koahubjs/koahub)\n\n## 官网\n[KoaHub.js官网](http://js.koahub.com)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoahubjs%2Fkoahub-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoahubjs%2Fkoahub-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoahubjs%2Fkoahub-cli/lists"}