1.0.0 • Published 5 years ago

fs-rmdir-recursive v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

fs-rmdir-recursive

Remove a directory and its entire files, using fs.rmdirSync and fs.unlinkSync.

Using fs.rmdirSync or fs.rmdir only, you can't delete a not empty folder.

Install

npm i fs-rmdir-recursive

Usage

const rmdir = require('fs-rmdir-recursive');

rmdir('path/to/be/remove');

console.log('success!')