Remov
Uninstall Node modules by regex patterns
Installation
You can install remov
from your terminal using your favorite package manager. Below is them example of how to install remov
with npm
npm install -g @namchee/remov
Usage
You can execute remov
from your terminal. Below is the example of using remov
to uninstall foo
and its related packages.
remov foo
Options
<pattern>
Type: string
Regex patterns for the packages that you want to uninstall. Support is limited to JS support.
For example, to uninstall all packages related with rollup
, you can execute the following command from your terminal:
remov rollup
--dry, -d
Type: boolean
Executes a dry-run. On dry-run mode, remov
won't uninstall any packages and will just report the list of packages that matches the provided criteria.
--global, -g
Type: boolean
Uninstall the package on global scope instead of the current working directory.
FAQ
remov
?
What package managers are currently supported by Currently, remov
supports npm
, yarn
, and pnpm
node_modules
? I'm using npm
by the way.
Why are the uninstalled packages still exist on npm
doesn't delete your uninstalled packages, even if the uninstall script completed successfully. You have to manually remove them with npm prune
.
yarn
and pnpm
users won't encounter this issue at all.
License
This project is licensed under the MIT license