Loading...
Loading...
Compare original and translation side by side
bunx knip # Analyze project
bunx knip --production # Production only (no tests, devDeps)
bunx knip --strict # Direct dependencies only
bunx knip --fix # Auto-remove unused (use cautiously)
bunx knip --include files # Only unused files
bunx knip --include exports # Only unused exports
bunx knip --include dependencies # Only unused depsbunx knip # 分析项目
bunx knip --production # 仅分析生产环境(不包含测试代码、开发依赖)
bunx knip --strict # 仅检查直接依赖
bunx knip --fix # 自动移除未使用内容(谨慎使用)
bunx knip --include files # 仅检查未使用文件
bunx knip --include exports # 仅检查未使用导出内容
bunx knip --include dependencies # 仅检查未使用依赖项bunx knip --reporter compact # Compact output
bunx knip --reporter json # JSON for tooling
bunx knip --reporter github-actions # CI annotationsbunx knip --reporter compact # 紧凑格式输出
bunx knip --reporter json # 输出JSON格式(供工具调用)
bunx knip --reporter github-actions # GitHub Actions CI注解格式bunx knip --workspace packages/client # Specific workspace
bunx knip --exclude "test/**/*" # Exclude patternsbunx knip --workspace packages/client # 指定工作区(packages/client)
bunx knip --exclude "test/**/*" # 排除指定模式的文件bunx knip --debug # Debug output
bunx knip --trace-file src/utils.ts # Trace file
bunx knip --trace-export myFunction # Trace exportbunx knip --debug # 输出调试信息
bunx knip --trace-file src/utils.ts # 追踪指定文件(src/utils.ts)
bunx knip --trace-export myFunction # 追踪指定导出内容(myFunction).knip.jsonknip.config.js.knip.jsonknip.config.js