title: Express: Best way to share a JS config file between client and server
body: <p>I have a <code>config.js</code> file that has all my app settings inside it. Some of these settings need to be shared with front-end scripts as well as back-end.</p>
  
  <p>I have some confidential variables that I don't want to be exposed to the front-end though. Do any NodeJS/ExpressJS wizz kids have any good solutions to this?</p>
  
  <p>Do you keep your common config data in a <code>/public</code> location and confidential server-side data separate above the exposed <code>/public</code> folder?</p>
  
  <p><em>Thanks guys</em></p>