title: node.js module exports
body: <p>What's the reason that this works:</p>
  
  <pre><code>exports.foo = 'foo';
  
  var bar = require('./foo');
  console.log(bar); // {foo: 'foo'}
  </code></pre>
  
  <p>but this doesn't:</p>
  
  <pre><code>var data = { foo: 'foo' };
  exports = data;
  
  var bar = require('./foo');
  console.log(bar); // {}
  // expected {foo: 'foo'}
  </code></pre>