UNPKG

serverless

Version:

Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more

15 lines (11 loc) 236 B
'use strict'; const fse = require('fs-extra'); function fileExistsSync(filePath) { try { const stats = fse.statSync(filePath); return stats.isFile(); } catch (e) { return false; } } module.exports = fileExistsSync;