UNPKG

osls

Version:

Open-source alternative to Serverless Framework

15 lines (11 loc) 237 B
'use strict'; const fse = require('fs-extra'); function dirExistsSync(dirPath) { try { const stats = fse.statSync(dirPath); return stats.isDirectory(); } catch (e) { return false; } } module.exports = dirExistsSync;