JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 90
  • Score
    100M100P100Q70085F
  • License MIT

Delete files and directories

Package Exports

  • eliminate

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eliminate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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