Skip to content

dsh-code-stats

Verified

dsh-code-stats · v0.1.0 · MIT

代码统计:扫描项目,按语言统计文件数与代码行数,返回语言分布与最大文件清单

Install

dsh plugin add dsh-code-stats

Confirm the layer applied with dsh --profile default --dump-config — see the install guide.

Source

Published to npm without a public repository. Inspect the package contents before installing.

Tags

Readme

dsh-code-stats · 代码统计

扫描项目,按语言统计文件数与代码行数,返回语言分布与最大文件清单。纯 Node 实现,无网络、无外部服务。

提供的工具

工具 作用
code_stats 统计文件数/行数,按语言分组,列出最大文件

安装

dsh plugin add dsh-code-stats

安装后在 profile 的 package.jsondsh.profile.bundles 中加入 "dsh-code-stats"

用法示例

帮我看看这个项目的规模和技术构成
→ 调用 code_stats(root="/workspace")

说明

  • 支持 30+ 语言扩展名识别(JS/TS/Python/Go/Rust/Java/JSON/YAML/Markdown 等)。
  • 自动跳过 node_modules、.git、二进制/图片/压缩包/锁文件等。