Electron is meant to provide a (cross-platform) Desktop GUI for your Javascript/Node app. It's overkill if all you want is package up your non-GUI or web app. Very different use case.
I think nexe, as mentioned by @whotheheck, is probably just right for that task.