BlueGit

blue-star danique-bot

Files

danique-bot / node_modules / fs-extra / lib / remove / index.js

index.js

Import template
timfa Tim · pushed by timfa · 4 years ago
c788ad20 History
index.js 339 B Download Raw
1var rimraf = require('./rimraf')
2
3function removeSync (dir) {
4 return rimraf.sync(dir, {disableGlob: true})
5}
6
7function remove (dir, callback) {
8 var options = {disableGlob: true}
9 return callback ? rimraf(dir, options, callback) : rimraf(dir, options, function () {})
10}
11
12module.exports = {
13 remove: remove,
14 removeSync: removeSync
15}