remove-nm
v0.0.4
Published
A command line tool to remove folder and files from a directory based on a regex
Downloads
6
Maintainers
Readme
remove-nm
About
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
.
Prerequisites
You need to have Node js install in your machine to execute the script.
Run
It can be run as an executible using npx or you can install it globally and then run it.
Using npx
npx remove-nm <directory> [regex] [flags]
Using global installation
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.
Example
npx remove-nm path/to/directory node_modules
Flags
-h, --help, -f, --files, -i=<folder,folder>, --ignore=<folder,folder> (ignore folders)