I have reviewed How do I determine the current operating system with Node.js, and similar posts, but have yet to find a solution.
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.
This answer comes close, 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:
const os = require('os');
console.log(os.platform());
console.log(os.type());
console.log(os.release());
console.log(os.arch());
console.log(os.hostname());