The Scenario
I'm asking this question because I know from using Node.js you can use this code to pull user information from the operating system.
console.log(userInfo());
Question
Is there a way that you could get this information from a hosted website that's hosted on an Apache server?
Or, can JavaScript get this information outside of using Node.js?
Edit
Sorry I didn't make this exactly clear, I want specifically the user information not just the OS, so for example on windows you can have multiple user accounts i wanted the username for the current account. The current answer and duplication links all lead to getting the operating system information but not the currently logged in users name.