@modyo/cli
Version:
Modyo CLI Command line to expose local development tools
16 lines (15 loc) • 466 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const path = tslib_1.__importStar(require("node:path"));
const promises_1 = tslib_1.__importDefault(require("node:fs/promises"));
async function pathExists(...pathParts) {
try {
await promises_1.default.access(path.resolve(...pathParts));
return true;
}
catch (_a) {
return false;
}
}
exports.default = pathExists;