This package has been deprecated

Author message:

Use node v14 recursive flag in rmdir

@fcostarodrigo/nuke

3.0.1 • Public • Published

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

Package Sidebar

Install

npm i @fcostarodrigo/nuke

Weekly Downloads

5

Version

3.0.1

License

MIT

Unpacked Size

6.65 kB

Total Files

14

Last publish

Collaborators

  • fcostarodrigo