NUKE
Simple node module to remove files and folders recursively.
Installation
npm install @fcostarodrigo/nuke
Usage
CLI
npm install -g @fcostarodrigo/nuke
nuke --help
nuke <pathToDelete>
Positionals:
pathToDelete String with the path to delete [string]
Options:
--help Show help [boolean]
--version Show version number [boolean]
Lib
const nuke = require("@fcostarodrigo/nuke");
async function main() {
await nuke("path/to/remove");
console.log("Files removed");
}
main();
Documentation
nuke(pathToDelete);
pathToDelete
: Path with folder or file to delete.
Returns a promise that resolves with nothing after the path has been deleted.