title: Node.Js - Get windows username
body: <p>I am trying to get the windows username of the machine that is running my node.jS app (the app is always running on a Windows machine).</p>
  
  <p>How can I get the current windows username using Node.Js?</p>
  
  <p>I am trying to find something similar to <strong>WindowsIdentity.GetCurrent().Name</strong> in C# for node.js, or <strong>whoamI</strong> command in CMD.</p>