I have a CommonJS module which contains a function that handles a HTTP request for me and builds the object I want from the JSON response.
I’m confused as to how to use it, though. It’s not going inside a BrowserWindow, so ipcRenderer seems inappropriate to use. Yet the module isn’t the Main module, so I shouldn’t use ipcMain there either. How should I send data from CommonJS modules back into Main?