{"id":16798815,"url":"https://github.com/simonguo/hbook-cli","last_synced_at":"2025-10-10T16:19:45.870Z","repository":{"id":57261891,"uuid":"48844134","full_name":"simonguo/hbook-cli","owner":"simonguo","description":"hbook 客户端","archived":false,"fork":false,"pushed_at":"2016-11-26T08:48:07.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-03T01:14:05.608Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/simonguo.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}},"created_at":"2015-12-31T09:35:37.000Z","updated_at":"2016-11-16T01:42:33.000Z","dependencies_parsed_at":"2022-08-25T06:10:59.104Z","dependency_job_id":null,"html_url":"https://github.com/simonguo/hbook-cli","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/simonguo/hbook-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fhbook-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fhbook-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fhbook-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fhbook-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonguo","download_url":"https://codeload.github.com/simonguo/hbook-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fhbook-cli/sbom","scorecard":{"id":824821,"data":{"date":"2025-08-11","repo":{"name":"github.com/simonguo/hbook-cli","commit":"5ea694f4b44586abdb9f98dfdfd8b37961b234d8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T16:25:46.941Z","repository_id":57261891,"created_at":"2025-08-23T16:25:46.941Z","updated_at":"2025-08-23T16:25:46.941Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278537755,"owners_count":26003250,"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-10-05T02:00:06.059Z","response_time":54,"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":[],"created_at":"2024-10-13T09:26:59.338Z","updated_at":"2025-10-10T16:19:45.853Z","avatar_url":"https://github.com/simonguo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hbook-cli\nFork: [https://github.com/GitbookIO/gitbook](https://github.com/GitbookIO/gitbook)\n\n[![NPM version](https://badge.fury.io/js/hbook-cli.svg)](http://badge.fury.io/js/hbook-cli)\n\n**功能**\n- 支持中文搜索;\n- 提供多种色彩模板选择;\n- 提供菜单可折叠配置;\n- 提供是否生成菜单序号配置;\n- 提供标题与版权信息设置。\n\n\n## 安装\n\n```\n$ npm install hbook-cli -g\n```\n\n初始化\n\n```\n$ hbook init\n```\n\n第1次初始化的时候会有点慢，下载 https://www.npmjs.com/package/hbook\n\n## 更新\n\n```\nhbook versions:update latest\n```\n\n更新到最新的版本\n\n\n## 编译，生成电子书\n\n```\n$ hbook build\n```\n\n## 参数及模板设置\n修改 `book.json`:\n\n```json\n{\n    \"title\": \"前端工程师文档\",\n    \"variables\": {\n        \"theme\": \"theme-gray\",\n        \"copyright\": \"Copyright 2015 f2edocs.com\"\n    },\n    \"collapsible_menu\":false,\n    \"level_number\":false\n}\n```\n\n## 自定义样式\n\n```json\n\"styles\": {\n    \"website\": \"styles/website.css\",\n    \"ebook\": \"styles/ebook.css\",\n    \"pdf\": \"styles/pdf.css\",\n    \"mobi\": \"styles/mobi.css\",\n    \"epub\": \"styles/epub.css\"\n}\n```\n\n\n- title: 配置文档标题，显示在页面顶部;\n- navs: 可以配置顶部菜单\n- variables.theme: 模板颜色,当前支持:theme-green,theme-purple,theme-orange,theme-deepblue;\n- variables.copyright: 配置版权信息，显示在页面底部;\n- styles: 自定义css\n\n\n## 谁在用\n[http://f2edocs.com/](http://f2edocs.com/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonguo%2Fhbook-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonguo%2Fhbook-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonguo%2Fhbook-cli/lists"}