clean-directory
A tiny module to clean a directory selecting which files or directories to keep.
Install
$ npm install --save clean-directory
Usage
const invert = ; // empty the directory; // empty the directory keeping a and its contents; // multiple patterns are possible;
Test and coverage
You just have to clone the repo and run
$ npm test
$ npm run coverage