UNPKG

roof.js

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