← 返回
开发者工具 中文

Clean Unused Deps

Clean up unused npm dependencies in a project. Use when you want to remove packages that are installed but not used in the codebase.
清理项目中未使用的npm依赖。用于移除已安装但代码中未使用的包。
hgxszhj-pixel
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 482
下载
💾 6
安装
1
版本
#latest

概述

Clean Unused Dependencies

This skill helps identify and remove unused npm dependencies from a project.

Workflow

  1. Identify unused dependencies using depcheck
  2. Remove the unused dependencies with npm uninstall

Prerequisites

  • Node.js and npm installed
  • depcheck installed globally (npm install -g depcheck)

Instructions

  1. Run depcheck in the project root to identify unused dependencies
  2. Review the output and identify packages to remove
  3. Run npm uninstall for each unused package

Example

# Check for unused dependencies
depcheck

# Remove unused package
npm uninstall unused-package-name

For multiple packages:

npm uninstall package1 package2 package3

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 05:34 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,530
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,385
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,473