12 lines
235 B
JavaScript
12 lines
235 B
JavaScript
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
getCurrentDirectoryBase: () => {
|
|
return path.basename(process.cwd());
|
|
},
|
|
|
|
directoryExists: (filePath) => {
|
|
return fs.existsSync(filePath);
|
|
}
|
|
}; |