title: NodeJS - Different File accessible from both client and node
body: <p>I have a (javascript) file which contains 'static' variables which are both used in the App.js and at the client side.</p>
  
  <p>Unfortunately at the App.js you're required to have 'modules' which aren't used in normal jscript files. This results in an error for the client side because 'module' isn't defined. Is there any way to do this?</p>
  
  <p><strong>TL;DR:</strong> How can I have constant variables accessible in both app.js and at the client side?</p>
  
  <p>E.g:</p>
  
  <pre><code>var Variable = { Foo: "Foo", Bar: "Bar"};
  
  Variable.Foo //Accesible from both app.js and client
  </code></pre>