title: With the coffee CLI, how I can assign variables to required files?
body: <p>I have figured out that it's possible to do something like this:</p>
  
  <pre><code>coffee -r "_=underscore"
  </code></pre>
  
  <p>In Javascript there seems to be no way to autoload constants; i.e. whatever you export you have to not only require but also explicitly assign a variable.</p>
  
  <p>I am trying to create a REPL for my program, a shell script that contains this:</p>
  
  <pre><code>coffee -r "{String, Array, Algorithms}=./port" 
  </code></pre>
  
  <p>where <code>./port</code> refers to my <code>port.coffee</code> file. However, that doesn't work. I get this error:</p>
  
  <pre><code>{String, Array, Algorithms} = require('./port')
                              ^
  SyntaxError: Unexpected token =
  </code></pre>
  
  <p>This looks like valid NodeJs so I'm not sure why it's not working. </p>
  
  <p>The reason I'm exporting &amp; requiring <code>String</code> and <code>Array</code> is that I'm loading patches for these core classes. </p>