package
Node.js implementation of `rm -fr` – recursive removal of files and directories
npm install rmfrGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Node.js implementation of rm -fr – recursive removal of files and directories
const rmfr = require('rmfr');
(async () => await rmfr('path/to/target'))();npm install rmfrconst rmfr = require('rmfr');path: string (a file/directory path)
options: Object
Return: Promise
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.
All rimraf options except for disableGlob are available, with some differences:
glob option defaults to false.
glob option true or provide a node-glob options object.unlink, chmod, rmdir and readdir options default to the corresponding graceful-fs methods.const rmfr = require('rmfr');
rmfr('inde*.js'); // doesn't remove `./index.js`
rmfr('inde*.js', {glob: true}); // removes `./index.js`ISC License © 2017 - 2018 Shinnosuke Watanabe
Estimated unpacked size across 19 packages.
7.2 MB
Includes dependencies.
5 direct · 2 outdated
^7.1.2
14.0.6
^2.6.2
6.1.4
^4.1.11
4.2.12
^1.0.4
1.0.5
^1.0.0
1.0.0