What is rimraf and how to use it in Node.js

1 · Coderslang Master · Feb. 8, 2021, 5:03 a.m.
The rimraf command is an alternative to the Linux command rm -rf. It allows you to do deep recursive deletion of files and folders. Global rimraf installation You can install rimraf globally using npm. It’s a common module, so you can install it on any operating system that supports npm. Windows, Linux, macOS - you shouldn’t have any issues here. > npm install rimraf --global Now you can use the command rimraf from the command line....