package-json-cleaner
v0.0.10
Published
A cli tool that will recursively search your project for usages of packages and clean up your package.json file
Downloads
5
Readme
package-json-cleaner
A nifty interactive cli tool to crawl through your code and find unused modules
sudo npm install -g package-json-cleaner
then
cd project-root
and then
package-json-cleaner
At the moment package-json-cleaner considers require("something");
and import something from 'something';
to be valid usages of a module. If it finds modules from your package.json
that are mentioned in other string constants it will ask you if it is a valid usage or not.
Options
||||
| ------------- |:-------------:| -----:|
|-e
,--exclude
|exclude directories (comma delimited)|package-json-cleaner -e src/assets,dist
|