title: Accessing exports through require call when using coffeescript
body: <p>I'm creating a node application using CoffeeScript and have run into a syntactic question. Basically, I have a simple file (foo.js) with an export that looks like this.</p>
  
  <pre><code>  foo = {}
  
    exports.foo = foo
  </code></pre>
  
  <p>Now, in a separate file, I want to create the equivalent syntax to this, but in CoffeeScript.</p>
  
  <pre><code>  var bar = require('./foo').foo;
  </code></pre>
  
  <p>So that bar is automatically assigned to the variable foo in foo.js.  However, I'm not sure what the proper CoffeeScript to do this is.  I've tried doing something like.</p>
  
  <pre><code>  bar = require './foo'.foo
  </code></pre>
  
  <p>But node yells at me, saying that it can't find the proper module.  Given that, is there any way for me to achieve my desired result just using pure CoffeeScript.</p>