Skip to content

fcostarodrigo/nuke

Repository files navigation

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

About

Remove files and folders recursively.

Resources

Stars

Watchers

Forks

Packages

No packages published