title: Returning a value to shell script from a node.js file
body: <p>I am calling a NodeJS file like this in a shell script:</p>
  
  <pre><code>$ node process.js
  $ let "errors |= $?"
  </code></pre>
  
  <p>I want to see if the process.js file returned any errors. How do I return a value inside process.js file so that I can capture it in my shell script.</p>