UNPKG

@spvrk/super-builder

Version:

project builder cli tool

16 lines (14 loc) 307 B
const fs = require('fs'); const path = require('path'); module.exports = { getCurrentDirectoryBase : () => { return path.basename(process.cwd()); }, directoryExists : (filePath) => { try { return fs.statSync(filePath).isDirectory(); } catch (err) { return false; } } };