Is the code you showed above the entire code of your project?
What are you trying to do?
When you assign something to module.exports, that implies you're trying to create a module. For example, if you have a file hello.js which contains:
module.exports = function (cb) {
cb(null, "Hello!");
}
Then you can use that module in another file, let's say app.js, by writing:
var hello = require('./hello.js');
hello(function (err, result) {
if (err) return console.error(err);
console.log(result);
});
When you run "node app.js" this will output:
Hello!
You can read much more about how modules work by reading:
http://nodejs.org/api/modules.html