Get Windows user's username?

I’ve made a very simple Ionic app with Angular (Ionic 4/Angular 8) linked to two GET API’s which display all the data.

The next step is to send a POST request which will allow for users to post feedback.

The app will mostly be run Windows (via Electron) and I wonder if anyone knows a way in which I can capture the Windows user’s username so I can submit this with the POST request?

You know this awesome Platform called Google? :smiley: I found this: https://stackoverflow.com/a/46318558, have you test that?

Thanks, but that only appears to be relevant to MacOS/Linux systems.

when i get the answer right, the first part ist for windows and the second, with process variable, for OSX and Linux