Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

rimraf node.js

// 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}/`));
Source by learn.coderslang.com #
 
PREVIOUS NEXT
Tagged: #rimraf
ADD COMMENT
Topic
Name
3+2 =