I am utilizing the Open package to launch URLs across different browsers. Unfortunately, there is a lack of comprehensive documentation on how to specifically launch with different browsers on various operating systems.
After some experimentation, I have discovered that for Mac, you can use:
const open = require('open');
await open('https://www.github.com', { app: 'microsoft edge' });
This indicates that the keyword for Mac is microsoft edge
.
Now, I am attempting to determine the correct keyword for Windows. I have tried using microsoft edge
, as well as microsoft-edge
:
await open('https://www.github.com', { app: 'microsoft-edge' });
and even just edge
:
await open('https://www.github.com', { app: 'edge' });
Unfortunately, none of these options seem to be successful in launching the specified browser on Windows.
If anyone has insight into the correct keyword for Windows, please share!