title: TypeError: Object is not a function Node JS
body: <p>Hi I am writing the following code</p>
  
  <pre><code>var http=require('http')
  
  var makerequest=function(message)
  {
     var options= {host:'localhost', port:8080, path:'/',method:'POST'}
     var request=http.request(options,function(response)
    {
      response.on('data',function(data)
        {
            console.log(data);
        });
     });
     request.write(message);
     request.end();
  }
  
  exports=makerequest;
  </code></pre>
  
  <p><strong>app.js :</strong></p>
  
  <pre><code>var makerequest=require('./make_request.js');
  
  makerequest("Here's looking at you, kid");
  </code></pre>
  
  <p>I am getting this error </p>
  
  <blockquote>
    <p><strong>TypeError: Object is not a function</strong></p>
  </blockquote>
  
  <p>Can someone help on this.I tried searching but couldnt find a solution. Thanks</p>