Get the URL from a web shortcut file
$ npm install shortcut-url
import shortcutUrl from 'shortcut-url';
console.log(await shortcutUrl('google'));
//=> 'https://google.com'
In the above example it will look for the following file:
google.weblocgoogle.desktopgoogle.urlReturns Promise<string> with the URL.
Type: string
The file path to the web shortcut.
Leave out the extension for cross-platform compatibility.