documentit/node_modules/fs-extra/lib/remove/index.js
2018-01-05 10:48:13 -08:00

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
}