I was preparing a slide deck for a hackathon and decided to put in a QR code to allow people…
I have been using npx a lot lately, especially whenever I want to use a CLI tool. It is an…
While working on a project, I wanted to do an integrity check of a file that I was referencing. So,…
Node.js 20.6 added built-in support for the .env file. This is an excellent addition to the platform and gives us the ability…
Object destructuring is a powerful ES 6 feature that can help developers write cleaner code. It allows us to extract…
Some new features in JavaScript are great to see, and the wake lock API is one of those. It allows…
I recently tried to use __dirname inside a ES module. It turns out, that I cannot. It throws an error. So let us…
The need to verify and notify the user if the Caps Lock key is on is fairly common. It is…
Jest has the ability to check for partial matches on arrays and objects. Let us see how to do partial…
SyntaxError: "[object Object]" is not valid JSON: usually happens when the value being passed to JSON.parse is not a string…