Question: what is the difference between module.exports and exports?
Answer: exports is assigned to is the object that is exported from your module. If you want to export a function from your module and you assign it to exports and not module. ... Your module will export an empty object, not the function that you probably intended it to export!