CJS/ESM ANSI color library for terminals, CI and Chromium-based browser consoles. Compatible with Bun, Deno, Next.JS.
webdiscus/ansis 的健康指数为 100 分中的 75 分,处于「良好」区间。 其得分最高的类别是Community & Adoption(79/100),最低的是Security(51/100)。 最近一次更新在 17 天前。 近期的大部分工作由 1 位贡献者完成。
指标归入加权类别,统一采用 1–100 量表。总体分先取类别加权平均,再依据公开记录的分布进行校准,使各等级具有百分位含义;当公开证据触发高风险司法辖区政策时,评级会按政策调整,并设置 34(存在风险)的上限。
每条轴代表一个类别。形状比平均值更重要——健康的对象会填满整个图形,而“一峰一谷”式画像意味着某一维度的优势正掩盖另一维度的风险。
加权总体分 65 经校准后在公布的指数量表上为 75(记录校准 2026-08-02)。
项目是否仍有生命——是否仍在编写代码,是否仍在发布版本?
| 28.8/36 | 推送新近度 — 最近一次推送于 17 天前 |
| 11.1/36 | 提交节奏 — 52 周中有 16 周有提交 |
| 14.6/18 | 提交量 — 最近一年 41 次提交 |
| 2/10 | OpenSSF Scorecard:Maintained — 3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2 |
| commits_last_year | 41 |
| human_commit_share | 1 |
| days_since_last_push | 17 |
| active_weeks_last_year | 16 |
| 27/27 | 有发布版本 — 已发布 22 个发布版本 |
| 27/36 | 发布时效 — 最近一次发布版本于 91 天前 |
| 19.8/27 | 发布节奏 — 约每 52.3 天发布一次 |
| 0/10 | OpenSSF Scorecard:Signed-Releases — 无数据 |
| releases_count | 22 |
| latest_release_tag | v4.3.1 |
| releases_from_tags | 否 |
| days_since_latest_release | 91 |
| mean_days_between_releases | 52.3 |
项目是否拥有用户、下载量与关注度,并具备欢迎贡献者参与的配置?
| 43.9/60 | 星标 — 506 个星标 |
| 9.6/25 | 复刻 — 15 个复刻 |
| 0/15 | 关注者 — 2 位关注者 |
| forks | 15 |
| stars | 506 |
| watchers | 2 |
| growth_state | unverified |
| growth_factor_pct | 100 |
| growth_unverified_reason | no_history |
| 22.5/22.5 | README |
| 22.5/22.5 | 许可证 — 可识别的许可证(ISC) |
| 18/18 | CONTRIBUTING 指南 |
| 13.5/13.5 | 行为准则 |
| 0/7.2 | 议题模板 |
| 6.3/6.3 | PR 模板 |
| has_readme | 是 |
| has_license | 是 |
| readme_badges | 4 |
| has_contributing | 是 |
| has_issue_template | 否 |
| has_code_of_conduct | 是 |
| readme_badge_services | codecov.io, github.com, shields.io |
| has_pull_request_template | 是 |
| 80/80 | 月度下载量 — npm 合计每月 190,551,620 次下载 |
| 0/20 | 注册表被依赖数 — 该生态系统不报告此项 |
| packages | ansis |
| dependents | — |
| ecosystems | npm |
| total_downloads | — |
| monthly_downloads | 190,551,620 |
| unverified_packages_excluded | — |
项目能否在其成员之外延续——巴士系数、响应能力、由谁支持,以及软件包的维护状况?
| 9/54 | 巴士系数 — 1 位贡献者贡献了半数提交 |
| 0.7/22.5 | 提交分布 — 头号贡献者编写了 97% 的提交 |
| 9.5/13.5 | 贡献者广度 — 7 位贡献者 |
| 3/10 | OpenSSF Scorecard:Contributors — project has 1 contributing companies or organizations -- score normalized to 3 |
| bus_factor | 1 |
| contributors_sampled | 7 |
| top_contributor_share | 0.967 |
| 38.3/42 | 议题解决 — 91% 的议题已关闭 |
| 17.4/30 | PR 接受 — 已裁定的 PR 中 11/19 已合并 |
| 0/13 | Newcomer PR acceptance — 30 天内没有首次贡献者的 PR 得到裁决 |
| 0/15 | OpenSSF Scorecard:Code-Review — Found 0/30 approved changesets -- score normalized to 0 |
| merged_prs | 11 |
| open_issues | 2 |
| closed_issues | 21 |
| prs_merged_7d | 0 |
| prs_decided_7d | 0 |
| prs_merged_30d | 0 |
| prs_decided_30d | 0 |
| issue_closed_ratio | 0.913 |
| closed_unmerged_prs | 8 |
| first_time_authors_30d | 0 |
| first_time_prs_merged_30d | 0 |
| first_time_prs_decided_30d | 0 |
| 10/30 | 所有权背书 — 个人(用户)账户 |
| 0/20 | 已验证域名 — 不适用于个人账户 |
| 12.3/25 | 所有者影响力 — webdiscus 有 50 位关注者 |
| 25/25 | 既往记录 — 111 个公开仓库,账户约 12 年 |
| followers | 50 |
| owner_type | User |
| is_verified | — |
| owner_login | webdiscus |
| public_repos | 111 |
| account_age_days | 4,573 |
| 25/25 | 已发布且可解析 — npm 上有 1 个软件包 |
| 35/35 | 发布时效 — 最近一次发布于 91 天前 |
| 20/20 | 版本历史 — 124 个已发布版本 |
| 20/20 | 未被弃用 — 活跃,未被弃用或撤回 |
| packages | ansis |
| ecosystems | npm |
| any_deprecated | 否 |
| min_days_since_publish | 91 |
基础的工程与文档实践是否到位?
| 24/24 | CI 工作流 — 1 个工作流 |
| 24/24 | 存在测试 |
| 0/16 | Linter 配置 |
| 0/9.6 | Pre-commit 钩子 |
| 6.4/6.4 | .editorconfig |
| 0/20 | OpenSSF Scorecard:CI-Tests — 无数据 |
| has_ci | 是 |
| has_tests | 是 |
| has_editorconfig | 是 |
| has_linter_config | 否 |
| has_precommit_config | 否 |
| 30/30 | README |
| 25/25 | 文档目录 |
| 0/15 | 文档 / 主页站点 |
| 10/10 | 仓库描述 |
| 10/10 | 主题标签 — 12 个主题标签 |
| 10/10 | Wiki |
| topics | ansi, colors, console, terminal, chalk, cli, styles, javascript, nodejs, escape, color, truecolor |
| has_wiki | 是 |
| homepage | — |
| docs_site | — |
| has_readme | 是 |
| has_docs_dir | 是 |
| has_description | 是 |
可见的安全与供应链实践是否稳固,且不存在未解决的高风险司法辖区暴露?
| 7.5/7.5 | Binary-Artifacts — no binaries found in the repo |
| 0/7.5 | Branch-Protection — branch protection not enabled on development/release branches |
| 0/2.5 | CI-Tests — 无数据 |
| 0/2.5 | CII-Best-Practices — no effort to earn an OpenSSF best practices badge detected |
| 0/7.5 | Code-Review — Found 0/30 approved changesets -- score normalized to 0 |
| 0.8/2.5 | Contributors — project has 1 contributing companies or organizations -- score normalized to 3 |
| 10/10 | Dangerous-Workflow — no dangerous workflow patterns detected |
| 0/7.5 | Dependency-Update-Tool — no update tool detected |
| 0/5 | Fuzzing — project is not fuzzed |
| 2.5/2.5 | 许可证 — license file detected |
| 1.5/7.5 | Maintained — 3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2 |
| 0/5 | Packaging — 无数据 |
| 0/5 | Pinned-Dependencies — dependency not pinned by hash detected -- score normalized to 0 |
| 0/5 | SAST — no SAST tool detected |
| 5/5 | Security-Policy — security policy file detected |
| 0/7.5 | Signed-Releases — 无数据 |
| 0/7.5 | Token-Permissions — detected GitHub workflow tokens with excessive permissions |
| 7.5/7.5 | Vulnerabilities — 0 existing vulnerabilities detected |
| source | openssf_scorecard |
| checks_evaluated | 15 |
| scorecard_version | v5.5.0 |
| checks_inconclusive | 3 |
| scorecard_aggregate | 3.9 |
| 35/35 | 直接依赖不含已知公告 — 没有直接依赖携带已知公告 |
| 0/25 | 间接依赖不含已知公告 — 在此范围内,传递依赖集合无法与开发和测试依赖区分 |
| 0/40 | 没有长期未处理的公告 — 没有公告带有发布日期 |
| source | osv |
| advisories | 1 |
| affected_packages | 1 |
| assessed_packages | 24 |
| unassessed_packages | 22 |
| affected_by_severity | critical 1 |
| direct_affected_packages | 0 |
该仓库在多大程度上具备与 AI 编码代理协同开发与维护的条件?权重刻意设小(4%):代理工具链是一项真实的维护信号,但完全不具备的仓库仍可达到 100/100。
| 0/45 | 代理指令 — 没有 CLAUDE.md / AGENTS.md / 编辑器规则 |
| 15/15 | 机器可读文档(llms.txt) — 项目网站提供 llms.txt(https://nodejs.org/llms.txt) |
| 40/40 | 可读的提交历史 — 100 次人类提交中有 97 次说明了意图(结构化标题或解释性正文) |
| has_llms_txt | 是 |
| llms_txt_url | https://nodejs.org/llms.txt |
| legible_history_share | 0.97 |
| agent_instruction_files | — |
| agent_instruction_max_bytes | — |
| 0/18 | 一条命令的引导启动 |
| 22/22 | 自动化测试 |
| 0/11 | Lint / 格式化配置 |
| 11/11 | 静态类型检查 — examples/jsconfig.json, test/ts/cjs-default-import-as/tsconfig.json, test/ts/cjs-default-import/tsconfig.json, test/ts/cjs-extend-colors-ts5.4/tsconfig.json, test/ts/cjs-extend-colors/tsconfig.json, test/ts/cjs-link-ts5.4/tsconfig.json, test/ts/cjs-link/tsconfig.json, test/ts/cjs-mix-import/tsconfig.json, test/ts/cjs-named-import-color-func/tsconfig.json, test/ts/cjs-named-import-simple/tsconfig.json, test/ts/cjs-node16-node16-require-link/tsconfig.json, test/ts/cjs-node16-node16-require/tsconfig.json, test/ts/esm-esnext-link/tsconfig.json, test/ts/esm-esnext/tsconfig.json, test/ts/esm-named-import-simple/tsconfig.json, test/ts/esm-node16-link/tsconfig.json, test/ts/esm-node16-node16-import-link/tsconfig.json, test/ts/esm-node16-node16-import/tsconfig.json, test/ts/esm-node16/tsconfig.json |
| 10/10 | 可复现环境 — Dockerfile |
| 0/10 | 已体现的代理实践 — 最近 100 次提交中没有代理编写的提交 |
| 0/8 | 自动化维护 — 未观察到自动依赖更新 |
| 0/10 | OpenSSF Scorecard:Pinned-Dependencies — dependency not pinned by hash detected -- score normalized to 0 |
| has_nix | 否 |
| has_tests | 是 |
| lockfiles | — |
| has_dockerfile | 是 |
| typed_language | 否 |
| bootstrap_files | — |
| has_devcontainer | 否 |
| has_linter_config | 否 |
| typecheck_configs | examples/jsconfig.json, test/ts/cjs-default-import-as/tsconfig.json, test/ts/cjs-default-import/tsconfig.json, test/ts/cjs-extend-colors-ts5.4/tsconfig.json, test/ts/cjs-extend-colors/tsconfig.json, test/ts/cjs-link-ts5.4/tsconfig.json, test/ts/cjs-link/tsconfig.json, test/ts/cjs-mix-import/tsconfig.json, test/ts/cjs-named-import-color-func/tsconfig.json, test/ts/cjs-named-import-simple/tsconfig.json, test/ts/cjs-node16-node16-require-link/tsconfig.json, test/ts/cjs-node16-node16-require/tsconfig.json, test/ts/esm-esnext-link/tsconfig.json, test/ts/esm-esnext/tsconfig.json, test/ts/esm-named-import-simple/tsconfig.json, test/ts/esm-node16-link/tsconfig.json, test/ts/esm-node16-node16-import-link/tsconfig.json, test/ts/esm-node16-node16-import/tsconfig.json, test/ts/esm-node16/tsconfig.json |
| agent_commit_share | 0 |
| toolchain_manifests | — |
| dependency_bot_commit_share | 0 |
| 27/45 | 可类型检查的代码 — JavaScript,已配置类型检查(examples/jsconfig.json, test/ts/cjs-default-import-as/tsconfig.json, test/ts/cjs-default-import/tsconfig.json, test/ts/cjs-extend-colors-ts5.4/tsconfig.json, test/ts/cjs-extend-colors/tsconfig.json, test/ts/cjs-link-ts5.4/tsconfig.json, test/ts/cjs-link/tsconfig.json, test/ts/cjs-mix-import/tsconfig.json, test/ts/cjs-named-import-color-func/tsconfig.json, test/ts/cjs-named-import-simple/tsconfig.json, test/ts/cjs-node16-node16-require-link/tsconfig.json, test/ts/cjs-node16-node16-require/tsconfig.json, test/ts/esm-esnext-link/tsconfig.json, test/ts/esm-esnext/tsconfig.json, test/ts/esm-named-import-simple/tsconfig.json, test/ts/esm-node16-link/tsconfig.json, test/ts/esm-node16-node16-import-link/tsconfig.json, test/ts/esm-node16-node16-import/tsconfig.json, test/ts/esm-node16/tsconfig.json) |
| 55/55 | 可控的文件大小 — 采样的 114 个源文件中有 0 个超过 60KB |
| primary_language | JavaScript |
| largest_source_bytes | 20,674 |
| source_files_sampled | 114 |
| oversized_source_files | 0 |
| 0/40 | API 模式(OpenAPI/GraphQL/proto) — 不适用于此类软件 |
| 0/20 | MCP 服务器 — 不适用于此类软件 |
| 40/40 | 可运行示例 — examples |
| example_dirs | examples |
| has_mcp_signal | 否 |
| api_schema_files | — |
| interfaces_expected_of | — |
每颗 star 和每个 fork 的添加时间,来自 GitHub 并按天汇总。累计增长位于其构成来源——每日新增——的正上方,二者可相互对照:稳定的自然增长与短暂的突增形态截然不同。当这一差别可被衡量时,它会作为增长真实性予以报告。
每个点涵盖 4 天。
来自开源项目 OpenSSF Scorecard 的独立、工具无关的安全评估。每项检查奖励的是安全实践本身,而非特定供应商的工具。Scorecard 无法判定的检查项标记为 不适用,并从安全评分中剔除(绝不按零分计)。
| 10 | Binary-Artifacts | no binaries found in the repo |
| 0 | Branch-Protection | branch protection not enabled on development/release branches |
| 不适用 | CI-Tests | no pull request found |
| 0 | CII-Best-Practices | no effort to earn an OpenSSF best practices badge detected |
| 0 | Code-Review | Found 0/30 approved changesets -- score normalized to 0 |
| 3 | Contributors | project has 1 contributing companies or organizations -- score normalized to 3 |
| 10 | Dangerous-Workflow | no dangerous workflow patterns detected |
| 0 | Dependency-Update-Tool | no update tool detected |
| 0 | Fuzzing | project is not fuzzed |
| 10 | License | license file detected |
| 2 | Maintained | 3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2 |
| 不适用 | Packaging | packaging workflow not detected |
| 0 | Pinned-Dependencies | dependency not pinned by hash detected -- score normalized to 0 |
| 0 | SAST | no SAST tool detected |
| 10 | Security-Policy | security policy file detected |
| 不适用 | Signed-Releases | no releases found |
| 0 | Token-Permissions | detected GitHub workflow tokens with excessive permissions |
| 10 | Vulnerabilities | 0 existing vulnerabilities detected |
| 注册表 | 软件包 | 版本约束 | 清单文件 |
|---|---|---|---|
| npm | @colors/colors | 1.6.0 | bench/package.json |
| npm | ansi-colors | 4.1.3 | bench/package.json |
| npm | ansis | file:../dist/node14 | bench/package.json |
| npm | benchmark | 2.1.4 | bench/package.json |
| npm | chalk | 5.6.2 | bench/package.json |
| npm | cli-color | 2.0.4 | bench/package.json |
| npm | colors | 1.4.0 | bench/package.json |
| npm | colorette | 2.0.20 | bench/package.json |
| npm | colors-cli | 1.0.33 | bench/package.json |
| npm | kleur | 4.1.5 | bench/package.json |
| npm | kolorist | 1.8.0 | bench/package.json |
| npm | picocolors | 1.1.1 | bench/package.json |
| npm | @colors/colors | 1.6.0 | compare/package.json |
| npm | ansi-colors | 4.1.3 | compare/package.json |
| npm | ansis | file:../dist/node14 | compare/package.json |
| npm | chalk | 5.3.0 | compare/package.json |
| npm | cli-color | 2.0.4 | compare/package.json |
| npm | colors | 1.4.0 | compare/package.json |
| npm | colorette | 2.0.20 | compare/package.json |
| npm | colors-cli | 1.0.33 | compare/package.json |
| npm | html-bundler-webpack-plugin | ^4.18.0 | compare/package.json |
| npm | kleur | 4.1.5 | compare/package.json |
| npm | kolorist | 1.8.0 | compare/package.json |
| npm | picocolors | 1.1.1 | compare/package.json |
| npm | tinyrainbow | ^2.0.0 | compare/package.json |
| npm | webpack | ^5.98.0 | compare/package.json |
| npm | webpack-cli | ^6.0.1 | compare/package.json |
| npm | ansis | file:../dist/node14 | test-bare/package.json |
来自 GitHub 依赖图的完整解析依赖集合:22 个直接依赖与 24 个间接(传递)软件包。仓库提交锁文件时,传递闭包才是完整的。
| 注册表 | 软件包 | 版本 | 关系 |
|---|---|---|---|
| npm | @colors/colors | 1.6.0 | 直接 |
| npm | ansi-colors | 4.1.3 | 直接 |
| npm | ansi-colors | ^4.1.3 | 直接 |
| npm | benchmark | 2.1.4 | 直接 |
| npm | chalk | 5.3.0 | 直接 |
| npm | chalk | 5.6.2 | 直接 |
| npm | chalk | ^5.3.0 | 直接 |
| npm | cli-color | 2.0.4 | 直接 |
| npm | cli-color | ^2.0.4 | 直接 |
| npm | colorette | 2.0.20 | 直接 |
| npm | colorette | ^2.0.20 | 直接 |
| npm | colors | 1.4.0 | 直接 |
| npm | colors-cli | 1.0.33 | 直接 |
| npm | html-bundler-webpack-plugin | ^4.18.0 | 直接 |
| npm | kleur | 4.1.5 | 直接 |
| npm | kleur | ^4.1.5 | 直接 |
| npm | kolorist | 1.8.0 | 直接 |
| npm | picocolors | 1.1.1 | 直接 |
| npm | picocolors | ^1.0.1 | 直接 |
| npm | tinyrainbow | ^2.0.0 | 直接 |
| npm | webpack | ^5.98.0 | 直接 |
| npm | webpack-cli | ^6.0.1 | 直接 |
| npm | @babel/core | ^7.27.1 | 间接 |
| npm | @babel/preset-env | ^7.27.2 | 间接 |
| npm | @jonahsnider/benchmark | ^5.0.3 | 间接 |
| npm | @rollup/plugin-babel | ^6.0.4 | 间接 |
| npm | @rollup/plugin-replace | ^6.0.2 | 间接 |
| npm | @rollup/plugin-terser | ^0.4.4 | 间接 |
| npm | @types/node | ^22.15.17 | 间接 |
| npm | @vitest/coverage-v8 | ^3.1.1 | 间接 |
| npm | css-color-names | 1.0.1 | 间接 |
| npm | esbuild | 0.25.2 | 间接 |
| npm | mocha | ^8.4.0 | 间接 |
| npm | nanocolors | ^0.2.13 | 间接 |
| npm | prettier | 3.5.3 | 间接 |
| npm | rimraf | 3.0.2 | 间接 |
| npm | rimraf | 6.0.1 | 间接 |
| npm | rollup | 4.40.2 | 间接 |
| npm | rollup-plugin-copy | 3.5.0 | 间接 |
| npm | swc | 1.0.11 | 间接 |
| npm | terser | 5.39.0 | 间接 |
| npm | tsup | 8.3.6 | 间接 |
| npm | typescript | 4.5.5 | 间接 |
| npm | typescript | 5.4.5 | 间接 |
| npm | vitest | ^3.1.3 | 间接 |
| npm | yoctocolors | ^2.1.1 | 间接 |
该仓库未发布可被索引解析的包,因此评估的是其自身的依赖图——共 24 个包,其中也包含从不交付的开发与测试版本固定:1 个存在已知公告,0 个为直接依赖。 有 22 个无法评估——没有已解析的版本、生态系统不受支持,或不在所列包清单之内。
| 软件包 | 版本 | 关系 | 严重程度 | 公告数 | 修复版本 |
|---|---|---|---|---|---|
| rollup | 4.40.2 | 间接 | 严重 | 1 | 4.59.0 |
公告表示依赖图中记录的版本落入某条公告的受影响范围。可达性未经分析,且依赖图包含开发与测试的版本固定——某项发现可能只涉及工具链而非交付的软件。
发现这份报告有不准确之处,或有想法要分享?错误的测量、未识别的工具、建议、疑问——都欢迎提出。每条消息都会被阅读并得到回复。