Before starting our journey to learn what tree-shaking is and how to set ourselves up for success with it, we need to understand what modules are in the JavaScript ecosystem.
Since its early… Read More
Global scope for every request in NodeJS Express
Problem
I have a basic express server that needs to store some global variables during each request handling.
More in depth, request handlin… Read More
How do I stub node.js built-in fs during testing?
Problem
I want to stub node.js built-ins like fs so that I don't actually make any system level file calls. The only thing I can think to d… Read More
Module exporting with prototypes and export inheritance in node.js
Problem
I have some questions about module exporting and their inheritance in node.
I know you can export a module with… Read More