title: What is good practice when writing a node.js module
body: <p>I can't really get a grip on what is considered to be good and bad practice when writing a module for in node.js. Some modules seem to use a lot of exports, while other use just one, etc.</p>
  
  <p>Example:</p>
  
  <pre><code>var self;
  var mymodule = function() {
      self = this;
      this.value1 = something;
      this.value2 = somethingElse;
  };
  module.exports.init = function() {
      return new mymodule();
  };
  
  mymodule.prototype.functionalityType1 = {
      someFunction: function(callback) {
          var a = self.value1;
          anotherfunction(a, callback);
      },
  };
  mymodule.prototype.functionalityType2 = {
      someFunction: function(callback) {
          var a = self.value2;
          anotherfunction(a, callback);
      },
  };
  
  var anotherfunction = function(v, callback) {
     // do stuff with v
     callback(result);
  };
  </code></pre>
  
  <p>Each of the prototypes would contain more than one function obviously.</p>
  
  <p>Would something like this be considered good practice?</p>