@amindunited/remove-directory

0.0.0 • Public • Published

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

Package Sidebar

Install

npm i @amindunited/remove-directory

Weekly Downloads

2

Version

0.0.0

License

MIT

Unpacked Size

21 kB

Total Files

12

Last publish

Collaborators

  • amindunited