hydro-clean-dir
Version:
Empty given directories after each test
45 lines (30 loc) • 857 B
Markdown
[](http://badge.fury.io/js/hydro-clean-dir)
[](http://travis-ci.org/hydrojs/hydro-clean-dir)
[](https://coveralls.io/r/hydrojs/hydro-clean-dir?branch=master)
# hydro-clean-dir
## Synopsis
Empty given directories after each test.
Useful to clean local tmp locations.
## Usage
Config:
```js
hydro.set({
plugins: ['hydro-clean-dir'],
cleanDir: {
keepDot: true // keep dot files, default: false
paths: [join('test', 'tmp')] // array of paths to directories
}
});
```
## Installation
#### npm:
```bash
npm install hydro-clean-dir
```
## Tests
```bash
$ npm test
```
## License
The MIT License (see LICENSE)