Node.js implementation of `rm -fr` – recursive removal of files and directories
npm install rmfr



Node.js implementation of rm -fr – recursive removal of files and directories
``javascript
const rmfr = require('rmfr');
(async () => await rmfr('path/to/target'))();
`
``
npm install rmfr
`javascript`
const rmfr = require('rmfr');
path: string (a file/directory path) Object
options: Promise
Return:
When it finish removing a target, it will be fulfilled with no arguments.
When it fails to remove a target, it will be rejected with an error as its first argument.
#### Options
All rimraf options except for disableGlob are available, with some differences:
* glob option defaults to false.glob
* If you want to specify targets using glob pattern, set option true or provide a node-glob options object.unlink
* , chmod, rmdir and readdir options default to the corresponding graceful-fs methods.
`javascript
const rmfr = require('rmfr');
rmfr('inde*.js'); // doesn't remove ./index.js./index.js
rmfr('inde*.js', {glob: true}); // removes ``
ISC License © 2017 - 2018 Shinnosuke Watanabe