Gaze at it and don’t judge the inconsistent use of
module.exports: I’ve got files that use the
module.exports = function() convention, ones that use
exports.render, and at least one that uses a class passed to
All of these effectively do the same thing here; I think it’s a matter of code style and I haven’t settled on mine yet. I think the class convention looks the cleanest for multiple functions, but I also like how
module.exports = function() looks the best for single functions.