It’s just the same code between the cli app (which was done first) and the Electron one. I didn’t look if there was a better lib for Electron.