Node.js module.export vs exports.start = start <p>In the topic I am learning from the author is using the following code:</p> <pre><code>var http = require("http"); var url = require("url"); function start(route) { function onRequest(request, response) { var pathname = url.parse(request.url).pathname; console.log("Request for " + pathname + " received."); route(pathname); response.writeHead(200, {"Content-Type": "text/plain"}); response.write("Hello World"); response.end(); } http.createServer(onRequest).listen(8888); console.log("Server has started."); } exports.start = start; </code></pre> <p>Where he exports it using <code>exports.start = start;</code></p> <p>When I was reading another topics about module exports people there used it like:</p> <pre><code>module.export = moduleName </code></pre> <p>It's probably pretty simple, but Please can you please clarify it for me? </p> <p>Is there some difference and what is behind the scenes? :)</p>