title: pass parameter function Node.js from one js to another
body: <p>I am trying to pass function response from one Node.js script to another </p>
  
  <p>Here is what I am trying.
  Index.js</p>
  
  <pre><code>var express = require('express');
  
  require('./meter');
  
  var app = express();
  
  app.get('/',function(req,res){
      return;                    //hi function from another file
  })
  
  app.listen(3000);
  console.log('listening on 3000 port')
  </code></pre>
  
  <p>meter.js</p>
  
  <pre><code>module.exports = {
  
      hi: function(req, res) {
          return res.status(200).json({"message" : "Hello V1"});
      }
  };
  </code></pre>
  
  <p>does require function only will do the job?</p>
  
  <p>Thanks in advance.</p>