UNPKG

detect-shells

Version:

Detect shells installed on a system

11 lines (10 loc) 312 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.pathExists = void 0; const promises_1 = require("node:fs/promises"); function pathExists(path) { return (0, promises_1.access)(path) .then(() => true) .catch(() => false); } exports.pathExists = pathExists;