@el3um4s/ipc-for-electron-system-info
Version:
Allow the renderer to get information about the version of Electron, Chrome and NodeJS used
25 lines (24 loc) • 869 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isWindows = exports.version = void 0;
const electron_1 = require("electron");
const version = () => {
const versionChrome = process.versions.chrome;
const versionNode = process.versions.node;
const versionElectron = process.versions.electron;
const versionApp = electron_1.app === null || electron_1.app === void 0 ? void 0 : electron_1.app.getVersion();
return {
chrome: versionChrome,
node: versionNode,
electron: versionElectron,
app: versionApp,
};
};
exports.version = version;
const isWindows = () => {
return { isWindows: process.platform === "win32" };
};
exports.isWindows = isWindows;
// TO DO:
// get the dependencies from the package.json
// get the devDependencies from the package.json