title: Node.js sensitive information in javascript file?
body: <p>Is it safe to contain sensitive information such as database connection details on a JavaScript file running on a Node.js server ?
  For instance:</p>
  
  <pre><code>var mysql = require('db-mysql');
  new mysql.Database({
      hostname: 'localhost',
      user: 'user',
      password: 'password',
      database: 'test'
  }).on('error', function(error) {
      console.log('ERROR: ' + error);
  }).on('ready', function(server) {
      console.log('Connected to ' + server.hostname + ' (' + server.version + ')');
  }).connect();
  </code></pre>
  
  <p>Since JavaScript file is a client-side file, is this information can't be seen through the client on a typical browser using the developer tool ?</p>