title: How to get line and file name from Error in Node.js?
body: <p>Suppose I have: </p>
  
  <pre><code>var err = new Error('My error!');
  </code></pre>
  
  <p>How to get line and file name, where <code>Error</code> was created?
  Like in PHP:</p>
  
  <pre><code>$ex = new \Exception();
  $ex-&gt;getLine();
  $ex-&gt;getFile();   
  </code></pre>