Here is the reason, stated succinctly by an express maintainer:
So you can require(‘./app’) from external files and get the express
app that is not listening on any port (think unit tests and the like).
source
Here is the reason, stated succinctly by an express maintainer:
So you can require(‘./app’) from external files and get the express
app that is not listening on any port (think unit tests and the like).
source