UNPKG

soloflow

Version:

Soloflow timetracking CLI tool - Create a user on Soloflow.io at start using our CLI to track your time.

16 lines (14 loc) 290 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; } } };