UNPKG

sls3-legacy

Version:

SLS3 Legacy - A fork of Serverless Framework v3

13 lines (9 loc) 230 B
'use strict'; const fsp = require('fs').promises; async function fileExists(filePath) { return fsp .lstat(filePath) .then((stats) => stats.isFile()) .catch(() => false); } module.exports = fileExists;