UNPKG

zents-cli

Version:

ZenTS is a Node.js & TypeScript MVC-Framework for building rich web applications, released as free and open-source software under the MIT License. It is designed for building web applications with modern tools and design patterns.

16 lines (15 loc) 402 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.doesDirOrFileExists = void 0; const fs_1 = require("fs"); async function doesDirOrFileExists(dirOrFile) { let success = true; try { await fs_1.promises.access(dirOrFile); } catch (error) { success = false; } return success; } exports.doesDirOrFileExists = doesDirOrFileExists;