Socket
Socket
Sign inDemoInstall

eliminate

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eliminate

Delete files and directories


Version published
Weekly downloads
40
decreased by-2.44%
Maintainers
1
Install size
5.15 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 18 Mar 2020

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc