UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

16 lines (12 loc) 339 B
var rimraf = require('./rimraf') function removeSync (dir) { return rimraf.sync(dir, {disableGlob: true}) } function remove (dir, callback) { var options = {disableGlob: true} return callback ? rimraf(dir, options, callback) : rimraf(dir, options, function () {}) } module.exports = { remove: remove, removeSync: removeSync }