{"id":16978229,"url":"https://github.com/plusmancn/npm-assistor","last_synced_at":"2026-03-10T15:31:46.986Z","repository":{"id":90472966,"uuid":"63747872","full_name":"plusmancn/npm-assistor","owner":"plusmancn","description":"npm 包初始化和 git tag 辅助工具","archived":false,"fork":false,"pushed_at":"2020-04-02T03:36:23.000Z","size":1702,"stargazers_count":29,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-17T15:34:49.556Z","etag":null,"topics":["git-flow","semver"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plusmancn.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-20T03:39:37.000Z","updated_at":"2022-02-18T10:13:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"d01ab0e6-8cc4-4e1d-8c05-651266c441eb","html_url":"https://github.com/plusmancn/npm-assistor","commit_stats":{"total_commits":26,"total_committers":2,"mean_commits":13.0,"dds":"0.038461538461538436","last_synced_commit":"df538916b6388828c588b4699af1b447444ea6d9"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/plusmancn/npm-assistor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusmancn%2Fnpm-assistor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusmancn%2Fnpm-assistor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusmancn%2Fnpm-assistor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusmancn%2Fnpm-assistor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plusmancn","download_url":"https://codeload.github.com/plusmancn/npm-assistor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plusmancn%2Fnpm-assistor/sbom","scorecard":{"id":738450,"data":{"date":"2025-08-11","repo":{"name":"github.com/plusmancn/npm-assistor","commit":"df538916b6388828c588b4699af1b447444ea6d9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 1/26 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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: ISC License: LICENSE:0"],"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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"}}]},"last_synced_at":"2025-08-22T16:36:43.654Z","repository_id":90472966,"created_at":"2025-08-22T16:36:43.654Z","updated_at":"2025-08-22T16:36:43.654Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30340117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:03:31.997Z","status":"ssl_error","status_checked_at":"2026-03-10T15:01:30.431Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["git-flow","semver"],"created_at":"2024-10-14T01:42:53.274Z","updated_at":"2026-03-10T15:31:46.965Z","avatar_url":"https://github.com/plusmancn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# npm-assistor\n[![npm-assistor](http://img.shields.io/npm/v/npm-assistor.svg)](https://www.npmjs.org/package/npm-assistor)\n\n\u003e npm 包初始化和 git tag 辅助工具。源于搜车前端内部规范化改造，具体指内部功能模块 SDK 化和 GitFlow 流程规范化。Github: [https://github.com/plusmancn/npm-assistor](https://github.com/plusmancn/npm-assistor) 欢迎 star 和 pr\n\n## Usage\n全局安装\n```shell\nnpm install -g npm-assistor\n```\n在项目根目录（package.json 所在文件夹）执行  \n```shell\nnpm-assistor\n```\n弹出如下选择界面  \n```shell\n? 选择要执行的命令 (Use arrow keys)\n  ❯ init (用于 npm 包初始化，请在 npm init 后执行) \n    tag (用于发布前 master 分支的 tag 标记)\n```\n**选择 init 后的交互（Gif)**  \n![npm-assistor-init](https://github.com/plusmancn/npm-assistor/raw/master/images/npm-assistor-init.gif)\n**选择 tag 后的交互（Gif)**  \n![npm-assistor-tag](https://github.com/plusmancn/npm-assistor/raw/master/images/npm-assistor-tag.gif)\n\n## Config（Important!!）\n**config 读取规则**  \n优先读取用户目录下的 `~/.npm_assistor.yml` 文件，如果不存在，则使用项目默认配置。  \n默认配置如下：  \n```yaml\n################### npm-assistor Configuration Example #########################\n\n################## 公共模版库配置 #########################\ntemplates:\n    # github 远端配置库，会调用 api.github.com 相关 Api 进行内容获取\n    # 支持多仓库\n    github:\n        # 可以 fork 示例模板，添加自己的配置\n        - https://github.com/plusmancn/npm-assistor-template.git\n        # - https://github.com/yourname/yourself-tempalte.git\n    # Todo 最好支持下 gitlab，实现内网服务\n    # gitlab:\n        # - \n################## gitignore 服务器地址 #########################\n#  项目地址: https://github.com/joeblau/gitignore.io\n#  土豪大大们，可以选择在国内部署一份，屌丝只用得起国外便宜货\ngitignore_server: http://gitignore.plusman.cn:8000\n```\n\n## Init 说明\n**eslintrc**  \n具体 IDE 集成参考：[eslint.org](http://eslint.org/)\n\n**LICENSE（未做集成）**  \n[licenses list by name]( https://opensource.org/licenses/alphabetical )  \n并未做成命令行，具体可以参考，源码 `licenses-files` 文件夹，内含思维导图 xmind 格式  \n![popular-license](https://github.com/plusmancn/npm-assistor/raw/master/images/popular-license.png)\n\n## Tag 说明\n**Tag说明**  \n发布号部分遵循 [semver](http://f2e.souche.com/blog/fan-yi-ru-he-zheng-que-de-ming-ming-ruan-jian-ban-ben-hao/) 规范设计，简版说明如下\n```javascript\n格式如 ${major}.${feature}.${patch}，遵循 semver 规范的版本号\n    选择需要递增的版本号\n        major: 主版本号，用于断代更新或大版本发布\n        feature: 特性版本号，用于向下兼容的特性新增\n        patch: 修订版本号，用于 bug 修复\n递增位的右侧位需要清零，如 1.1.2 =\u003e 1.2.0\n```\n\n发布日期部分遵循 `{year}w{weeks}{a-z: 本周第几次发布}`，此部分可选，如果服务端项目发布必带；sdk 发布一般不带  \n\n**周数定义**  \n```javascript\nconst moment = require('moment');\n// 更新 week 设置\nmoment.locale('zh-cn', {\n    // 每年第一周的定义：\n    // 国内：包含1月4号的那周为每年第一周\n    // 美国：包含1月1号的那周为每年第一周（苹果日历也是如此）\n    // 更新了下 moment，现在规则是 包含1月1号的那周为每年第一周，新的一周起始于周一\n    //（比较好理解，苹果日历也可设置，设置-\u003e高级-\u003e显示周数）\n    week : {\n        dow : 1, // Monday is the first day of the week.\n        doy : 7  // The week that contains Jan 1th is the first week of the year.\n    }\n});\n```\n\n**GitFlow 流程**  \n附上团队内部修改过的GitFlow 流程。[a-successful-git-branching-model/](http://nvie.com/posts/a-successful-git-branching-model/) 原博客结尾有 keynote 源码哈，可以在这基础上改出适合自己团队的 GitFlow\n![GitFlowV2 Of souche](https://github.com/plusmancn/npm-assistor/raw/master/images/GitFlowV2.jpg)\n\n## About\nHave Fun!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplusmancn%2Fnpm-assistor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplusmancn%2Fnpm-assistor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplusmancn%2Fnpm-assistor/lists"}