The process
module is built into Node.js (therefore you can use this in both the main and renderer processes) and in Electron apps this object has a few more useful properties on it.
The example below gets the version of Electron in use by the app.
See the process documentation (opens in new window) for more.