DEV Community

Discussion on: The cleanest way to maintain connect / express middlewares in Node.js

Collapse
kmistele profile image
Kyle Mistele

Really cool! Definitely a better option compared to using 30-odd lines of app.js for middlewares. Does the ... operator guarantee that the properties of the module's exports will be expanded in the order that they're defined?

Collapse
christianfei profile image
Christian Author

Absolutely yes 👍