check-unused-dependencies
v1.1.10
Published
A cli tool that checks for unused npm packages in a project
Downloads
11
Readme
Description
Sometimes, we add packages that we never end up using and forget to remove them, check-unused-dependencies
is a CLI tool that scans through your project for such packages and let you remove them if you want to.
Dependencies
This project uses jq
Install jq
for mac
brew install jq
Install jq
for windows
chocolatey install jq
Install jq
for Linux
sudo apt-get install jq
Installation
The recommended way to install this package is to do a global install
Install as global package
$ sudo npm install -g check-unused-dependencies
Install as devDependencies
$ npm install check-unused-dependencies
Usage
If installed globally
cd into any project and run check-dep
If installed as devDependencies
You can run it as an npm script
Example
"name": "test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"check": "check-dep"
},
"dependencies": {
"check-unused-dependencies": "^1.1.6",
"express": "^4.17.0"
}
}
$ npm run check
Contributors
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
License
This project is licensed under MIT