UNPKG

@guidepup/setup

Version:

Setup your environment for screen-reader automation.

19 lines (18 loc) 539 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isNvdaInstalled = isNvdaInstalled; const fs_1 = require("fs"); const constants_1 = require("./constants"); function isNvdaInstalled({ exists, userProvidedInstallDirectory, values, }) { if (!exists) { return false; } const path = values[constants_1.VERSIONED_KEY]?.value; if (!path) { return false; } if (userProvidedInstallDirectory !== path) { return false; } return (0, fs_1.existsSync)(path); }