15 lines
262 B
JavaScript
15 lines
262 B
JavaScript
|
var rimraf = require('rimraf')
|
||
|
|
||
|
function removeSync (dir) {
|
||
|
return rimraf.sync(dir)
|
||
|
}
|
||
|
|
||
|
function remove (dir, callback) {
|
||
|
return callback ? rimraf(dir, callback) : rimraf(dir, function () {})
|
||
|
}
|
||
|
|
||
|
module.exports = {
|
||
|
remove: remove,
|
||
|
removeSync: removeSync
|
||
|
}
|