Newer
Older
vue-indexer / node_modules / fs-extra / lib / remove / index.js
@eugene-sukhodolskiy eugene-sukhodolskiy on 24 Sep 331 bytes v1.0
'use strict'

const fs = require('graceful-fs')
const u = require('universalify').fromCallback

function remove (path, callback) {
  fs.rm(path, { recursive: true, force: true }, callback)
}

function removeSync (path) {
  fs.rmSync(path, { recursive: true, force: true })
}

module.exports = {
  remove: u(remove),
  removeSync
}