I have my project structure as follow.
Main Project
-Project A(Electron + React)
-node_modules
-package.json
-src
-public
-electron.js
-Project B(Terminal based)
-node_modules
-package.json
-src
-lib
-terminal.js
What I want to achieve is from electron.js, call a function named 'config', which is inside terminal.js file. How can I do that?
I have tried to use child-process but its throwing error. I am new to Electron and any help would be good.