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.
This project uses jq
brew install jq
chocolatey install jq
sudo apt-get install jq
The recommended way to install this package is to do a global install
$ sudo npm install -g check-unused-dependencies
$ npm install check-unused-dependencies
cd into any project and run check-dep
You can run it as an npm script
"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
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
This project is licensed under MIT