Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/terkelg/eliminate
- Owner: terkelg
- License: mit
- Created: 2018-02-19T03:15:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-24T10:54:38.000Z (over 2 years ago)
- Last Synced: 2024-07-08T07:08:36.679Z (4 months ago)
- Topics: delete, elimination, io, remove, rm, rmdir
- Language: JavaScript
- Homepage:
- Size: 60.5 KB
- Stars: 52
- Watchers: 3
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license
Awesome Lists containing this project
- awesome-list - eliminate
README
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
```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)