Denomo is a CLI utility that deletes nested node_modules
directories
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
Node v14.14.0 or above is required for running this utility!
npm i -g denomo-cli
Run Denomo from the terminal:
denomo ~/path/to/projects
The 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/projects
You will be notified at the end:
Done in 684 ms
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
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)
Deploy the project locally:
git clone https://github.com/julyskies/denomo-cli
cd ./denomo-cli
nvm use 14
npm i
Run the tests:
npm run test
After deploying the project and installing the modules you can do the linting:
npm run lint
Using ESLint