Wrote a simple program, connectServer.js: var connect require(connect) var util require(util) function sendJSON(response, obj)return app has no method router at Object. (/Users/iwaldman/dev/ node/connectserver.js:12:10) at Module.compile (module.js:441:26) at Object Express.js: Object has no method call. NodeJS - sometimes my exported methods arent available. Node.JS Sandbox include certain methods and libraries. How to call internal functions in route module (node.js)? Since Node.js treats files as CommonJS modules, main.js can take the exported reverse function from reverse.js.Objects that emit events in Node have a method called on that is similar to the addEventListener method in the browser. stream.on(data, function(tweet) . var twitterSentiment, geoColorOnly Node.