Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/terkelg/eliminate

Delete files and directories without all the bullshit.
https://github.com/terkelg/eliminate

delete elimination io remove rm rmdir

Last synced: 3 months ago
JSON representation

Delete files and directories without all the bullshit.

Awesome Lists containing this project

README

        


eliminate

eliminate



version


travis


downloads

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

```js
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](https://terkel.com)