0.0.0 • Published 5 years ago
@amindunited/remove-directory v0.0.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!
})
0.0.0
5 years ago