title: Express Module in node exports an function or an object
body: <p>While using express in node we write <code>app = express()</code> which shows that express module exports only a function i.e. <code>module.exports=function(){}</code> something like that but at the same time for using static files we do something like <code>app.use(express.static())</code> which shows that express module exports an object with static function as one feature. Can someone explain how this contradicting this is possible?</p>