Node.JS
import.meta.main, neat!
if (import.meta.main) main();
A JavaScript runtime engine based off of Chrome's V8 JavaScript engine.
Node.JS
if (import.meta.main) main();
quick-tip
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 among other places in the code-base. module.exports = { get middlewares() { return require('./middlewares'
quick-tip
In JavaScript, what's the difference between var, const and let? In previous generations of JavaScript, only var was available. The latter two were added as part of ES2015. Scope Both let and const are blocked scoped variables whereas var was not blocked scoped. All var declared variables are
Open Source Software
TestCafe is a web application (or website) testing tool. It's designed to automatically test websites from a user's perspective. This paradigm is key to the effective use of TestCafe; a common objective for TestCafe is to test website features through the lens of the user while
Exploration
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.
Exploration
In this part, we take a closer look at the implementation of pg-promise, dissecting some basic components.
Exploration
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.
Linkbook - Interesting Technical Links
Linkbook is my weekly (or so) series listing interesting technical or science related links.
Node.JS
Can we use a Promise to increase the performance throughput of an HTTP web server on Node?
Node.JS
Dig in to the implementation of Pinkie, the Node JS package by Floatdrop.
GitHub
Bouncy is a tool to "pipe raw http traffic from [an] incoming http request to a another remote end point." It's an interesting tool and, for me, a useful find. Not to reveal too much but this site is running on Node among other technologies. I
Tools of Open Source
I found myself in a situation where I needed to list all of the global npm packages I had installed on a (windows) server. The command, it turned out, was quite simple: npm ls --global npm ls itself will list the packages installed locally which can be helpful unto itself.