Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hughsk/rm-modules
Recursively remove *all* node_modules directories within the chosen root directory
https://github.com/hughsk/rm-modules
Last synced: 12 days ago
JSON representation
Recursively remove *all* node_modules directories within the chosen root directory
- Host: GitHub
- URL: https://github.com/hughsk/rm-modules
- Owner: hughsk
- License: other
- Created: 2014-11-20T02:36:06.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-29T11:11:13.000Z (almost 8 years ago)
- Last Synced: 2024-10-17T16:40:37.634Z (22 days ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 26
- Watchers: 3
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# rm-modules
![](http://img.shields.io/badge/stability-experimental-orange.svg?style=flat)
![](http://img.shields.io/npm/v/rm-modules.svg?style=flat)
![](http://img.shields.io/npm/dm/rm-modules.svg?style=flat)
![](http://img.shields.io/npm/l/rm-modules.svg?style=flat)Recursively remove *all* `node_modules` directories within the chosen root
directory.Useful for cleaning a project which has more than one `node_modules` tree.
## CLI Usage
[![NPM](https://nodei.co/npm/rm-modules.png)](https://nodei.co/npm/rm-modules/)
``` bash
npm install -g rm-modules
rm-modules
```## Module Usage
### `rm(root, done(err))`
Recursively removes every `node_modules` directory within the `root` directory,
calling `done(err)` when complete.## License
MIT. See [LICENSE.md](http://github.com/hughsk/rm-modules/blob/master/LICENSE.md) for details.