title: Node.js package self-reference
body: <p>Can package <code>require</code> itself and its subsystems?</p>
  
  <p>For instance there is module:
  <code>src/deep/path/to/module.js</code>
  which need to require
  <code>src/another/module.js</code></p>
  
  <p>Instead of:</p>
  
  <pre><code>require('./../../../another/module.js');
  </code></pre>
  
  <p>Can one just:</p>
  
  <pre><code>require('&lt;self&gt;/another/module.js');
  </code></pre>
  
  <p>? </p>
  
  <p>For instance this might be useful in testing: test unit can reference its test object without long up-and-down-style path.</p>
  
  <p>I have two considerations (but they do not satisfies this issue completely):</p>
  
  <ol>
  <li><p>If package is already in <code>node_modules</code> folder it can reference to itself by its 
  canonical name (that in its <code>package.json</code>).</p></li>
  <li><p>Package can create symlink to itself in its own <code>node_modules</code> folder (sic!). Haven't try it yet, possible will lead to infinite loop in some resolving cases.</p></li>
  </ol>