title: How to require a file other than the npm main file in node?
body: <p>package.json:</p>
  
  <pre><code>...
  "name": "mypackage",
  "main": "src/index.js"
  ...
  </code></pre>
  
  <p>Directory structure:</p>
  
  <pre><code>|- src/
  |--- index.js
  |--- other.js
  </code></pre>
  
  <p>I can require <code>src/index.js</code> with <code>require('mypackage');</code>, but how can I require <code>src/other.js</code>? </p>
  
  <p>If the answer is <code>require('mypackage/src/other');</code>, is there a way to make it so I can require it with <code>require('mypackage/other');</code> (i.e. teaching node what the source file directory is of your module?</p>