node-modules-removal
v1.0.2
Published
A tool to remove node_modules from multiple projects
Readme
remove-node-modules
remove-node-modules is an NPX tool that removes the node_modules folder from multiple projects.
Installation
You can use this tool without installing it globally by using NPX:
npx remove-node-modules <path-to-root-directory>Alternatively, if you want to install it globally:
npm install -g remove-node-modulesUsage
Run the tool using the NPX command:
npx remove-node-modules /path/to/root/folderThis will remove the node_modules folder from every project inside the specified directory.
Default Directory
If no directory is specified, the tool will default to the current working directory:
npx remove-node-modulesExample
To remove node_modules from all projects inside a workspace folder:
npx remove-node-modules ~/workspaceFeatures
- Recursively deletes
node_modulesfolders from multiple project directories. - Handles paths across different operating systems using
rimraf.
