Skip to content

Delete files and directories without all the bullshit.

License

Notifications You must be signed in to change notification settings

terkelg/eliminate

Repository files navigation

eliminate

eliminate

Delete files and directories without all the bullshit.

Installation

npm install eliminate --save

OBS: This package uses async/await and requires Node.js 7.6

Usage

const del = require('eliminate');

// ...

await del('path/or/file/to/delete.js');

API

eliminate(path)

Type: Promise

Deletes the directory or file. If the filepath is a non-empty directory, everything in it will be deleted recursively.

path

Type: String

The file or directory path to delete.

CLI

$ npm install --global eliminate
$ eliminate path/to/file.js

$ eliminate path/to/dir

License

MIT © Terkel Gjervig

About

Delete files and directories without all the bullshit.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •