https://github.com/namchee/remov
Uninstall Node modules by regex patterns 📦
https://github.com/namchee/remov
Last synced: 6 days ago
JSON representation
Uninstall Node modules by regex patterns 📦
- Host: GitHub
- URL: https://github.com/namchee/remov
- Owner: Namchee
- Created: 2021-08-06T11:00:40.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-08T06:29:48.000Z (almost 5 years ago)
- Last Synced: 2025-03-02T10:35:44.586Z (over 1 year ago)
- Language: JavaScript
- Size: 76.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Remov
[](https://www.npmjs.com/package/@namchee/remov)  [](https://github.com/namchee/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`
```bash
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.
```bash
remov foo
```
## Options
### ``
**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:
```bash
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
### What package managers are currently supported by `remov`?
Currently, `remov` supports `npm`, `yarn`, and `pnpm`
### Why are the uninstalled packages still exist on `node_modules`? I'm using `npm` by the way.
`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](./LICENSE)