title: How do I get the nodejs version inside a nodejs program?
body: <p>In a <a href="https://github.com/rocky/trepanjs" rel="noreferrer">debugger for nodejs</a>, there is a command to show the V8 version and the debugger package version. How can I get the nodejs version? </p>
  
  <p>I imagine I can basically run a command <code>node --version</code> or <code>nodejs --version</code>, but I'm hoping there a is way to do with without running an external shell command &ndash; which is not only slower but, depending on paths, might give a different answer.</p>