Is it possible for Node.js running on a desktop to spawn a Chrome Browser window? I would like to start a Chrome Browser providing the window size and location when Node.js rece
This can be done using open npm package.
app.listen(PORT, (err) => { if (err) console.log(err); else open(`http://localhost:${PORT}`, { app: "google chrome" }); });
We can specify any browser in second parameter with open function.