下一代轻量的依赖效率分析工具-depx

宣传一下vibe的小工具:

depx

Dependency Efficiency Analyzer - 依赖效率分析工具
Detect unused dependencies in your project, analyze dependency efficiency and surface area.
检测项目中声明但未使用的依赖,分析依赖效率与影响面,帮助开发者识别依赖浪费。

Features / 功能

Unused Detection — Scan project dependency manifest files and detect unused dependencies / 扫描项目依赖声明文件,检测未使用的依赖

Efficiency Analysis— Analyze which exports of a dependency are actually used, calculate efficiency percentage / 分析依赖的哪些导出被实际使用,计算效率百分比

Surface Area Analysis — Analyze how widely a dependency is used across the project, assess criticality / 分析依赖在项目中的使用广度,评估关键度

Lock File Analysis — Parse lock files to get accurate dependency versions and detect indirect dependencies / 解析 Lock File 获取准确的依赖版本并检测间接依赖

Monorepo Support— Detect and scan npm workspaces, merge results across sub-projects / 检测并扫描 npm workspaces,合并子项目结果

Configuration — Customize ignore rules, exclude directories via `.depx.yml` / 通过 `.depx.yml` 自定义忽略规则、排除目录
更多详情请见README
由于我也是萌新,而且目前只是个玩具半成品,一定还有很多不足之处,欢迎各位反映使用体验或进行贡献,也欢迎star!非常感谢。
update:Efficiency功能不可用。

2 个赞

不错,支持一下