title: Require a file within itself in node.js
body: <p>How do you require a file within itself in node.js? E.g. api.js:</p>
  
  <pre><code>var api = require(./api.js);
  </code></pre>
  
  <p>What is the best practice for doing this?</p>