remove_nm is a simple CLI tool that will help you to delete your folder and files recursively from project to manage space default:node_modules
.
You need to have Node js install in your machine to execute the script.
It can be run as an executible using npx or you can install it globally and then run it.
npx remove-nm <directory> [regex] [flags]
Install it globally by running
npm i -g remove-nm
then
remove-nm <directory> [regex] [flags]
The name of the directory will be parent directory under which your files or folders are located.
npx remove-nm path/to/directory node_modules
-h, --help, -f, --files, -i=<folder,folder>, --ignore=<folder,folder> (ignore folders)