In a Node.js environment, the process object gives control over the process on which the Node.js is running. This is available as a global object inside the Node.js context. Electron provides an extended version of this process object with more functionalities. For a detailed information about the Node.js process, visit https://nodejs.org/api/process.html. Other than Node's process object API properties and events, the Electron process object gives an extra event that can be used to do some initialization purpose after the Electron process has been initialized. The load event provided by this process object is useful to run some initialization blocks right after the Electron process is initialized. Mostly, this is very useful when you turn off the Node.js context in the Electron for your renderer process. Then, you can initialize some of the global Node.js variables inside this event, as the node context is not available inside the renderer process:
function someFunction...