Socket
Book a DemoInstallSign in
Socket

eliminate

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eliminate

Delete files and directories

1.1.2
latest
Source
npmnpm
Version published
Weekly downloads
33
-62.92%
Maintainers
1
Weekly downloads
 
Created
Source
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

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

Keywords

io

FAQs

Package last updated on 18 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.