{"id":18015984,"url":"https://github.com/linusling/wechat-format-cli","last_synced_at":"2025-08-28T02:33:07.493Z","repository":{"id":34999682,"uuid":"195225147","full_name":"LinusLing/wechat-format-cli","owner":"LinusLing","description":"微信公众号排版编辑器cli，一行命令生成公众号内容","archived":false,"fork":false,"pushed_at":"2025-06-03T06:23:26.000Z","size":85,"stargazers_count":38,"open_issues_count":1,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-20T16:49:21.900Z","etag":null,"topics":["articles","cli","editor","html","markdown","wechat","wechat-format-cli","wechat-official-account"],"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/LinusLing.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,"zenodo":null}},"created_at":"2019-07-04T10:59:16.000Z","updated_at":"2025-08-19T08:53:05.000Z","dependencies_parsed_at":"2025-08-20T16:32:31.835Z","dependency_job_id":"9ce90663-cece-434a-9423-1d36395dd3cd","html_url":"https://github.com/LinusLing/wechat-format-cli","commit_stats":{"total_commits":25,"total_committers":3,"mean_commits":8.333333333333334,"dds":0.36,"last_synced_commit":"107cd19ab2fa4b5f94f0c02206b6ac7dfa8cf9ab"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/LinusLing/wechat-format-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusLing%2Fwechat-format-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusLing%2Fwechat-format-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusLing%2Fwechat-format-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusLing%2Fwechat-format-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinusLing","download_url":"https://codeload.github.com/LinusLing/wechat-format-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusLing%2Fwechat-format-cli/sbom","scorecard":{"id":84594,"data":{"date":"2025-08-11","repo":{"name":"github.com/LinusLing/wechat-format-cli","commit":"c4c6a009c76e8a2e8d3b258d11a5e8e49f73829b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.2,"checks":[{"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":"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/14 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":"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":"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":"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":"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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-pq67-2wwv-3xjx","Warn: Project is vulnerable to: GHSA-8cj5-5rvv-wf4v"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T06:39:10.752Z","repository_id":34999682,"created_at":"2025-08-15T06:39:10.752Z","updated_at":"2025-08-15T06:39:10.752Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272423869,"owners_count":24932890,"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-28T02:00:10.768Z","response_time":74,"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":["articles","cli","editor","html","markdown","wechat","wechat-format-cli","wechat-official-account"],"created_at":"2024-10-30T04:15:46.295Z","updated_at":"2025-08-28T02:33:07.426Z","avatar_url":"https://github.com/LinusLing.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 微信公众号排版编辑器 (wechat-format-cli)\n\n转化 Markdown 到给微信特制的 HTML（受 [微信公众号排版编辑器](https://github.com/lyricat/wechat-format) 的启发，刚好自己又有这个需求）\n\n## 如何使用\n\n\u003e 前提：确保已经安装 npm。[如何安装 npm（安装 node.js 会自带 npm）](http://www.runoob.com/nodejs/nodejs-install-setup.html)\n\n\u003e 1.1.0 版本起已依赖 puppeteer，若安装失败可以参考[这里](https://github.com/cnpm/cnpmjs.org/issues/1246#issuecomment-359148058)\n\n#### 原始方法\n\n1. 打开 Terminal\n2. 执行如下脚本\n\u003cpre\u003e\nnpm install wechat-format-cli \u0026\u0026 cd ./node_modules/wechat-format-cli \u0026\u0026 npm start \u003cb\u003eyour_md_path.md\u003c/b\u003e\n\u003c/pre\u003e\n3. Ctrl/Command + V 到微信公众号编辑器\n\n#### 全局方法\n\n1. 安装：`npm install wechat-format-cli -g`\n2. 打开命令行执行：`wechat-format-cli [your_md_path.md]`\n3. Ctrl/Command + V 到微信公众号编辑器\n\n## CHANGELOG\n\n\u003cdetails\u003e\n\u003csummary\u003e1.1.3\u003c/summary\u003e\n\u003c/br\u003e\n\u003cp\u003e1. 修复执行完 Copy 操作但无内容的 bug\u003c/b\u003e\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e1.1.2\u003c/summary\u003e\n\u003c/br\u003e\n\u003cp\u003e1. 支持全局安装\u003c/b\u003e\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e1.1.0\u003c/summary\u003e\n\u003c/br\u003e\n\u003cp\u003e1. 利用 puppeteer 实现复制 html，替换原来纯文本带标签的方式\u003c/p\u003e\n\u003c/details\u003e\n\n## 优点\n\n- 继承了[微信公众号排版编辑器](https://github.com/lyricat/wechat-format)的优点（当然也有 bug。。）\n- 不需要网页编辑\n- 生成后的微信特制 HTML 直接复制到粘贴板，打开微信公众号编辑器直接粘贴\n- 可以为**[微信公众号的自动发布文章](https://github.com/LinusLing/WeChatMediaPlatformAutomation)**提供内容\n\n## 关于我\n\n我是 Linus。如果你喜欢我的工具，可以：\n\n- 给这个项目加星 https://github.com/LinusLing/wechat-format-cli\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusling%2Fwechat-format-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinusling%2Fwechat-format-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusling%2Fwechat-format-cli/lists"}