node-modules-removal
v1.0.2
Published
A tool to remove node_modules from multiple projects
Downloads
8
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-modules
Usage
Run the tool using the NPX command:
npx remove-node-modules /path/to/root/folder
This 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-modules
Example
To remove node_modules
from all projects inside a workspace
folder:
npx remove-node-modules ~/workspace
Features
- Recursively deletes
node_modules
folders from multiple project directories. - Handles paths across different operating systems using
rimraf
.