Reading a .config file
<p>Currently I have a file called router.js set up as follows:</p>

<pre><code>var Server = require('mongodb').Server;
var MongoDB = require('mongodb').Db;
var dbPort = 31979;
var dbHost = '40.117.155.19';
var dbName = 'node-login';
</code></pre>

<p>I would like to to be set up like this:</p>

<pre><code>var Server = require('mongodb').Server;
var MongoDB = require('mongodb').Db;
var dbPort      = readConfig(dbPort);
var dbHost      = readConfig(dbHost);
var dbName      = readConfig(dbName);
</code></pre>

<p>How would I go about accomplishing this. I would like to have a file such as test.config, and be able to read dbPort, dbHost, and dbName from that .config file in router.js. </p>