npm.io
2.0.1 • Published 6 years ago

dleet

Licence
MIT
Version
2.0.1
Deps
2
Size
4 kB
Vulns
0
Weekly
0
Stars
81

dleet npm

Delete directories and files. Yet another one of many similar to rm -rf packages. However:

  • no CLI
  • no globs
  • Promise only API
  • Windows errors handling:
    • an attempt to fix EPERM and retry
    • an attempt to wait and retry few times on EBUSY

Install

$ yarn add dleet

Usage

import dleet from 'dleet'

dleet('/file/or/directory/path')
  .then(() => console.log('done'))
  .catch(console.error)

Keywords