title: How to have path alias in nodejs?
body: <p>Let's say i have following codes:</p>
  
  <pre><code>var mod1 = require('../../../../ok/mod1');
  var mod2 = require('../../../info/mod2');
  </code></pre>
  
  <p>It's not pretty coding like above, i am wondering if there is a way to configure the root resolver just like <a href="http://webpack.github.io/docs/configuration.html#resolve-root" rel="noreferrer">webpack-resolve-root</a> in nodejs?</p>
  
  <p>So far as i know, the <code>NODE_PATH</code> can be used to replace the root of <code>node_modules</code>, but that's not what i want. I'd like to have the resolver to resolve multiple folders in order.</p>