Open all files in default OS program

Is there a way to link to open all file extensions with default OS program instead of internal to Electron?

My file names are loaded from a JSON file. (Value.url is the file name pulled in dynamically during a search)

“<input type=‘button’ id=‘openBtn’ style=‘border-radius: 25px; outline: none’ value=‘Open Link’ onclick=location.href=’” + value.url + “’>”


there is a special command from electron package :

It will do exactly what you want
Hope I helped you