module.exports vs exports in Node.js
Even though question has been answered and accepted long ago, i just want to share my 2 cents: You can imagine that at the very beginning of your file there is something like (just for explanation): var module = new Module(…); var exports = module.exports; So whatever you do just keep in mind that module.exports … Read more