![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@el3um4s/ipc-for-electron-system-info
Advanced tools
Allow the renderer to get information about the version of Electron, Chrome and NodeJS used
Allow the renderer to get information about the version of Electron, Chrome and NodeJS
NPM link: @el3um4s/ipc-for-electron-system-info
Use @el3um4s/ipc-for-electron to allow communication between Electron and a web page
To use the package in a project:
npm i @el3um4s/ipc-for-electron-system-info @el3um4s/ipc-for-electron
Then the preload.ts
file:
import { generateContextBridge } from "@el3um4s/ipc-for-electron";
import { systemInfo } from "@el3um4s/ipc-for-electron-system-info";
const listAPI = [systemInfo];
generateContextBridge(listAPI);
From the renderer file:
import { renderer as systemInfo } from "@el3um4s/ipc-for-electron-system-info";
let isWindows = false;
systemInfo.requestIsWindows({
callback: (data) => {
isWindows = data.isWindows;
},
});
let app: string = "-";
let chrome: string = "-";
let node: string = "-";
let electron: string = "-";
systemInfo.requestSystemInfo({
callback: (data) => {
chrome = data.chrome;
node = data.node;
electron = data.electron;
app = data.app;
},
});
From the renderer you can use:
let isWindows = false;
globalThis.api.systemInfo.send("requestIsWindows", null);
globalThis.api.systemInfo.receive("getIsWindows", (data) => {
isWindows = data.isWindows;
});
let chrome: string = "-";
let node: string = "-";
let electron: string = "-";
let app: string = "-";
globalThis.api.systemInfo.send("requestSystemInfo", null);
globalThis.api.systemInfo.receive("getSystemInfo", (data) => {
chrome = data.chrome;
node = data.node;
electron = data.electron;
app = data.app;
});
requestSystemInfo
- Request the version of Electron, Chrome and NodeJS. The response is sent to the getSystemInfo
channelrequestIsWindows
- Request if the OS is Windows. The response is sent to the getIsWindows
channelrequestSystemInfo = async (options: { callback?: (arg0: SystemInfo) => void; apiKey?: string; }): Promise<SystemInfo>
example:
import { renderer as systemInfo } from "@el3um4s/ipc-for-electron-system-info";
let app: string = "-";
let chrome: string = "-";
let node: string = "-";
let electron: string = "-";
systemInfo.requestSystemInfo({
apiKey: "ipc",
callback: (data) => {
console.log("DATA OK", data);
chrome = data.chrome;
node = data.node;
electron = data.electron;
app = data.app;
},
});
requestIsWindows = async (options: { callback?: (arg0: IsWindows) => void; apiKey?: string; }): Promise<IsWindows>
example:
import { renderer as systemInfo } from "@el3um4s/ipc-for-electron-system-info";
let isWindows = false;
systemInfo.requestIsWindows({
apiKey: "ipc",
callback: (data) => {
console.log("DATA OK", data);
isWindows = data.isWindows;
},
});
on.getSystemInfo = async (options: { callback?: (arg0: SystemInfo) => void; apiKey?: string; }): Promise<SystemInfo>
example:
import { renderer as systemInfo } from "@el3um4s/ipc-for-electron-system-info";
let app: string = "-";
let chrome: string = "-";
let node: string = "-";
let electron: string = "-";
systemInfo.requestSystemInfo();
systemInfo.on.getSystemInfo({
apiKey: "ipc",
callback: (data) => {
console.log("DATA OK", data);
chrome = data.chrome;
node = data.node;
electron = data.electron;
app = data.app;
},
});
on.getIsWindows = async (options: { callback?: (arg0: IsWindows) => void; apiKey?: string; }): Promise<IsWindows>
example:
import { renderer as systemInfo } from "@el3um4s/ipc-for-electron-system-info";
let isWindows = false;
systemInfo.requestIsWindows();
systemInfo.on.getIsWindows({
apiKey: "ipc",
callback: (data) => {
console.log("DATA OK", data);
isWindows = data.isWindows;
},
});
SystemInfo
interface SystemInfo {
chrome: string;
node: string;
electron: string;
app: string;
}
IsWindows
interface IsWindows {
isWindows: boolean;
}
DefaultApiKey
type DefaultApiKey = "ipc";
FAQs
Allow the renderer to get information about the version of Electron, Chrome and NodeJS used
We found that @el3um4s/ipc-for-electron-system-info demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.