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) 237 B
module.exports = isexe isexe.sync = sync var fs = require('fs') function isexe (path, _, cb) { fs.access(path, fs.X_OK, function (er) { cb(er, !er) }) } function sync (path, _) { fs.accessSync(path, fs.X_OK) return true }