- Complete React app with 7 developer tools - JSON Tool with visual structured editor - Serialize Tool with visual structured editor - URL, Base64, CSV/JSON, Beautifier, Diff tools - Responsive navigation with dropdown menu - Dark/light mode toggle - Mobile-responsive design with sticky header - All tools working with copy/paste functionality
23 lines
489 B
JavaScript
23 lines
489 B
JavaScript
'use strict'
|
|
|
|
const fs = require('graceful-fs')
|
|
const u = require('universalify').fromCallback
|
|
const rimraf = require('./rimraf')
|
|
|
|
function remove (path, callback) {
|
|
// Node 14.14.0+
|
|
if (fs.rm) return fs.rm(path, { recursive: true, force: true }, callback)
|
|
rimraf(path, callback)
|
|
}
|
|
|
|
function removeSync (path) {
|
|
// Node 14.14.0+
|
|
if (fs.rmSync) return fs.rmSync(path, { recursive: true, force: true })
|
|
rimraf.sync(path)
|
|
}
|
|
|
|
module.exports = {
|
|
remove: u(remove),
|
|
removeSync
|
|
}
|