title: Node.js to get/determine OS version
body: <p>I'd like to determine whether some script that is being executed is running a particular version of Mac OSX.  I realize I can exec/spawn the command:</p>
  
  <pre><code>sw_vers -productVersion
  </code></pre>
  
  <p>Is there a way to do this synchronously (similar to process.arch) without <a href="https://github.com/jeremyfa/node-exec-sync" rel="noreferrer">node-exec-sync</a>?  I realize its an accepted bad practice to spawn/exec synchronously, but I don't see another way.</p>