denomo-cli v1.0.1
denomo-cli
Denomo is a CLI utility that deletes nested node_modules directories
Use case
Denomo can be used in situations where you need to delete node_modules from lots of nested directories
Consider this: you need to transfer your Projects directory, that have 30 or 40 projects in it
And the best way to do that is to compress it into a single file
But you don't want to include all of the node_modules, so now you have to delete them manually
Denomo can help you with that
Install
Node v14.14.0 or above is required for running this utility!
npm i -g denomo-cliUsage
Run Denomo from the terminal:
denomo ~/path/to/projectsThe command above will delete all of the nested node_modules directories from ~/path/to/projects
Full path to the initial directory works as well:
denomo /Users/peter/path/to/projectsYou will be notified at the end:
Done in 684 msPerformance
Current implementation utilizes all of the available cores (number obtained with os.cpus().length)
This helps with the recursive directory parsing and allows Denomo to parse several directories at the same time
Use with care
This module interacts with the filesystem and deletes files. Be careful when running it, make sure that you provide the correct initial path
The / path will not be processed (just in case)
Testing
Deploy the project locally:
git clone https://github.com/julyskies/denomo-cli
cd ./denomo-cli
nvm use 14
npm iRun the tests:
npm run testLinting
After deploying the project and installing the modules you can do the linting:
npm run lintUsing ESLint