For an upcoming article, I'm investigating the source code to Ghost - the platform this blog (and many others) run on. I found this code in main/core/server/web/shared/index.js
I decided to follow this up for two main reasons. First and foremost, there was an error in the original code I posted and I couldn't remember if that error existed in the code I actually tested with or if it was introduced during my writing of the article.
In this part, we take a closer look at the implementation of pg-promise, dissecting some basic components.
Vitaly Tomilov's pg-promise is a fantastic example of a well ran, well written open source project. This is part 1 of this set where we go through Tomilov's code and learn about how pg-promise is put together and architected.