rm-dir
Remove directory and all its contents, sync, async callback or promise
rm-dir
is a very fast and simple function, based on native File System (FS) functions, no additional module is required.
$ npm install rm-dir
Include in your script
const rmdir = ;
SYNC, no callback function, use "try & catch" for errors
;
ASYNC, with callback function "console.log"
;
Promise
rmdir;
async / await
async { console;};
rm-dir is licensed under the MIT license. See the included LICENSE
file for more details.