@fcostarodrigo/nuke

Remove files and folders recursively


Keywords
remove, files, recursively, rm -rf
License
MIT
Install
npm install @fcostarodrigo/nuke@3.0.1

Documentation

NUKE

Codacy Badge Build Status codecov

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.

Changelog

License

MIT License