npm.io
0.0.0 • Published 7 years ago

@amindunited/remove-directory

Licence
MIT
Version
0.0.0
Deps
0
Size
21 kB
Vulns
0
Weekly
0

Remove Directory

Remove a directory in Node with promise

Install

npm install @amindunited/remove-directory

Use

const path = require('path');
const removeDirectory = require('@amindunited/remove-directory');
const directoryToRemove = path.join(__dirname, 'testing');

removeDirectory(directoryToRemove)
  .then(() => {
    // ... continue
  }, (err) => {
    // ... Oh no, you got an error!
  })

Keywords