Open the URL from a web shortcut file in the browser
npm install open-shortcut
import openShortcut from 'open-shortcut';
await openShortcut('google');
console.log('URL opened in the browser');
In the above example it will look for the following file:
google.weblocgoogle.desktopgoogle.urlReturns a Promise for the child process and resolves when the shortcut has opened.
Type: string
The file path to the web shortcut.
Leave out the extension for cross-platform compatibility.