0.0.0 • Published 5 years ago

@amindunited/remove-directory v0.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

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!
  })