Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.