🧪 Skills
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.
v1.0.0
Description
name: clean-unused-deps description: Clean up unused npm dependencies in a project. Use when you want to remove packages that are installed but not used in the codebase.
Clean Unused Dependencies
This skill helps identify and remove unused npm dependencies from a project.
Workflow
- Identify unused dependencies using
depcheck - Remove the unused dependencies with
npm uninstall
Prerequisites
- Node.js and npm installed
depcheckinstalled globally (npm install -g depcheck)
Instructions
- Run
depcheckin the project root to identify unused dependencies - Review the output and identify packages to remove
- Run
npm uninstall <package-name>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
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!