Search code examples
systemelectron

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?


Solution

  • 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.