Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the system information in Electron?

I need to get the system info on the multi platforms in Electron. How to get the system information in Electron?

like image 804
Wonju Avatar asked Dec 08 '15 00:12

Wonju


People also ask

What is the Electron system in PC?

Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application.

What port does Electron use?

Electron will listen for V8 inspector protocol messages on the specified port , an external debugger will need to connect on this port. The default port is 5858 .

Does Electron have backend?

Electron is one of the most popular desktop frameworks today. Electron uses HTML, JavaScript, and CSS for its front end and Node. js for its backend. This design enables developers to quickly write and easily maintain cross-platform applications between their desktop and web applications.


1 Answers

Check out this page https://nodejs.org/api/os.html. It is nodejs documentation, but since electron and node are very much the same thing it will work.

var os = require('os');

is what you are looking for though.

like image 122
QuantumDebris Avatar answered Jan 05 '23 01:01

QuantumDebris