UNPKG

declapract

Version:

A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.

15 lines 420 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.doesFileExist = void 0; const fs_1 = require("fs"); const doesFileExist = async ({ filePath }) => { try { const stat = await fs_1.promises.lstat(filePath); return stat.isFile(); } catch (error) { return false; } }; exports.doesFileExist = doesFileExist; //# sourceMappingURL=doesFileExist.js.map