@amindunited/remove-directory
v0.0.0
Published
Remove a directory in node and return promise
Downloads
2
Maintainers
Readme
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!
})