I need to get the system info on the multi platforms in Electron
. How to get the system information in Electron
?
Asked
Active
Viewed 2.1k times
9

Wonju
- 135
- 1
- 1
- 9
-
Better answer here: http://stackoverflow.com/questions/8683895/how-do-i-determine-the-current-operating-system-with-node-js – gdorbes Nov 16 '16 at 17:09
1 Answers
14
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.

TrippLamb
- 1,422
- 13
- 24