title: How to require deep nested NodeJS modules?
body: <p>I have the following application structure:</p>
  
  <pre><code>application
  |- config
  |----- config.js
  |- routes
  |------ api
  |-----------router.js 
  |- Application.js
  |- package.json
  </code></pre>
  
  <p>In /routes/api/router.js module I need to require /config/config.js file and do the following:</p>
  
  <pre><code>require('../../config/config.js');
  </code></pre>
  
  <p>I found the code above ugly and want to make it more pretty. Also if I move <code>/routes/api/router.js</code> to another folder I have to refactor all requires. What is the best practices to require that modules and is it possible to require config.js from application folder root, something like the following:</p>
  
  <pre><code>require('/config/config.js');
  </code></pre>
  
  <p>Thanks.</p>