dye9
v2.0.6
Published
```js const fs = require("fs");
Downloads
3
Readme
const fs = require("fs");
const removeDir = (pathDir) => {
const arr = fs.readdirSync(pathDir);
arr.forEach(item => {
item = pathDir + "/" + item;
let info = fs.statSync(item);
if(info.isFile()){
fs.unlinkSync(item)
}else{
removeDir(item)
}
})
fs.rmdirSync(pathDir)
}
removeDir("node_modules");