Posted by Patrick Steele-Idem on Monday, Jan 12th, 2015 JavaScript, Modules, Design Patterns, Node.js There's a common design pattern in the Node.js community that has been bothering me for some time since it results in less readable code. The issue relates to designing modules that export a single factory function. Let's take a look at some example code using the popular express module: var expr