Development

How To Get The Hash of A File In Node.js

While working on a project, I wanted to do an integrity check of a file that I was referencing. So,…

19 hours ago

Native popover API in HTML

Popovers have been a problem that was typically solved by using a third-party solution. But that is no longer the…

1 week ago

Node.js 20.6 adds built-in support for .env files

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…

2 weeks ago

Object destructuring in TypeScript

Object destructuring is a powerful ES 6 feature that can help developers write cleaner code. It allows us to extract…

4 weeks ago

Improve git clone performance in a CI pipeline

Have you felt particularly annoyed by the time it takes to clone a large repository, especially one with a huge…

1 month ago

Fix: Hydration failed because the initial UI does not match what was rendered on the server

Within a React or Next.js app, if you encounter the error "Hydration failed because the initial UI does not match…

1 month ago

How to keep the screen awake using JavaScript

Some new features in JavaScript are great to see, and the wake lock API is one of those. It allows…

2 months ago

Using RegEx groups for Search & replace in VS Code

VS Code has a nifty tool for doing search and replace using RegEx, which I prefer using whenever doing bulk…

2 months ago

How To Fix ReferenceError: __dirname is not defined

I recently tried to use __dirname inside a ES module. It turns out, that I cannot. It throws an error. So let us…

2 months ago

How to detect caps lock with JavaScript

The need to verify and notify the user if the Caps Lock key is on is fairly common. It is…

3 months ago
Advertisements