The question is published on by Tutorial Guruji team.
I want to find out how I can create another window from an already-running node.js application that I can output text in from the main application.
I have a window that displays information (main window), but I want to get another window that displays errors (secondary window) and would close when the main application is stopped. How would I be able to achieve this?
Any help would be appreciated, thanks.
Update: Nevermind, I found a solution. (answered below)
another update: You could also use express and socket.io to make a logs web page
I ditched the idea of an additional GUI and instead used a terminal library called terminal-kit, which worked perfectly for what I wanted to use it for. I’d recommend trying to make an electron app or something similar if you do want to open another GUI.