rmdir_p

rm -rf dir

npm install rmdir_p
2 downloads in the last week
4 downloads in the last month

works same as rm -rf dir

rmdir_p = require('rmdir_p');

rmdir_p(dir, function() {
    console.log('文件夹已删除');
});
npm loves you