title: How to implement inheritance in node.js modules?
body: <p>I am in process of writing nodejs app. It is based on expressjs. I am confused on doing inheritance in nodejs modules. What i am trying to do is create a model base class, let's say my_model.js.</p>
  
  <pre><code>module.exports = function my_model(){
    my_model.fromID = function(){
      //do query here
    }
  }
  </code></pre>
  
  <p>Now i want to use those methods in my_model in my other model class. let's say user_model.js
  How do i inherit my_model in user_model?</p>