title: Declare multiple module.exports in Node.js
body: <p>What I'm trying to achieve is to create one module that contains multiple functions in it.</p>
  
  <p>module.js:</p>
  
  <pre><code>module.exports = function(firstParam) { console.log("You did it"); },
  module.exports = function(secondParam) { console.log("Yes you did it"); }, 
  // This may contain more functions
  </code></pre>
  
  <p><code>main.js:</code></p>
  
  <pre><code>var foo = require('module.js')(firstParam);
  var bar = require('module.js')(secondParam);
  </code></pre>
  
  <p>The problem I have is that the <code>firstParam</code> is an object type and the <code>secondParam</code> is a URL string, but when I have that it always complains that the type is wrong.</p>
  
  <p>How can I declare multiple module.exports in this case?</p>