title: Side-effects of not loading node modules globally
body: <p>Normally, we require node modules like:</p>
  
  <pre><code>var dep = require('some-dependency');
  function runner() {
    dep();
  }
  </code></pre>
  
  <p>If we do like this:</p>
  
  <pre><code>function runner() {
  var dep = require('some-dependency');
  dep();
  }
  </code></pre>
  
  <p>I know for fact it works, and there's nothing stopping me from doing this, except Eslint's <a href="http://eslint.org/docs/rules/global-require" rel="nofollow noreferrer">global-require</a> rule.</p>
  
  <p>But is there any side effect in the latter pattern, considering how Node handles it internally?</p>