title: How do I determine if current operating system is Window 7 with Node.js
body: <p>I have reviewed <a href="https://stackoverflow.com/questions/8683895/how-do-i-determine-the-current-operating-system-with-node-js#">How do I determine the current operating system with Node.js</a>, and similar posts, but have yet to find a solution.</p>
  
  <p>I am using Docker on Windows 7. This situation is unique because under my setup I have to use my local IP when configuring webpack dev server proxy requests. This is different from other developers on the project using Windows 10 or Mac, who are able to proxy localhost.</p>
  
  <p><a href="https://stackoverflow.com/a/40890069/3931488">This answer comes close</a>, but conditionally checking isWindows is not good enough. I need to check isWindows7. I have tried these, but I don't see anything (AFAIK) good enough to prove that I am using Windows 7:</p>
  
  <pre><code>const os = require('os');
  console.log(os.platform());
  console.log(os.type());
  console.log(os.release());
  console.log(os.arch());
  console.log(os.hostname());
  </code></pre>