3.0.1 • Published 5 years ago

@fcostarodrigo/nuke v3.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

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

3.0.1

5 years ago

3.0.0

5 years ago

2.1.1

5 years ago

2.0.3

6 years ago