title: execute some code and then go into interactive node
body: <p>Is there a way to execute some code (in a file or from a string, doesn't really matter) before dropping into interactive mode in node.js?</p>
  
  <p>For example, if I create a script <code>__preamble__.js</code> which contains:</p>
  
  <pre><code>console.log("preamble executed! poor guy!");
  </code></pre>
  
  <p>and a user types <code>node __preamble__.js</code> they get this output:</p>
  
  <pre><code>preamble executed! poor guy!
  &gt; [interactive mode]
  </code></pre>