title: Can function in module.exports access global variable in module?
body: <p>If I have code like this in one module,</p>
  
  <pre><code>var foo = "bar";
  
  module.exports = function() {
      console.log(foo);
  }
  </code></pre>
  
  <p>and I access it from another like so,</p>
  
  <pre><code>var mod = require('above-module');
  mod();
  </code></pre>
  
  <p>Will it be able to access the variable 'foo' which is local to the module or is it out of scope after 'require' has cached the exported function?</p>