📜  rimraf node.js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:02.105000             🧑  作者: Mango

代码示例1
// A viable alternative to `rm -rf`
// GLOBAL INSTALL AND USE FROM CLI
// npm install rimraf --global
> rimraf ./node_modules

// OR LOCAL PROJECT INSTALL
// > npm install rimraf --save
rimraf(`./${userIdFolder}/`,
() => console.log(`DELETED ./${userIdFolder}/`));