A Guide to Migrating from Webpack to Vite — SitePoint

In this article, we’ll look at how to upgrade a frontend web application from Webpack to Vite. Vite is the latest frontend development tool to be enjoying a tremendous growth in popularity and adoption. Just check out these downloads from npm trends in the image below. Image source This trend is being driven by a… Continue reading A Guide to Migrating from Webpack to Vite — SitePoint

Removing the Background from an Image in Figma

For many years, Photoshop was the go-to tool for many image editing tasks such as removing the background from an image. But nowadays there are powerful new options for image editing. We can do a lot more with UI design tools like Figma now, including removing an image’s background. In this quick tip, we’ll show… Continue reading Removing the Background from an Image in Figma

JavaScript Numeric Separators

Writing good code is important — writing code that’s easily human readable is a next level skill. It’s not often that APIs are introduced whose seemingly only useful function is making code more readable, but let me introduce you to JavaScript numeric separators: an API that lets developers use underscores to make numbers more readable!… Continue reading JavaScript Numeric Separators


Navigating and managing data structures is a really important skill for every level of engineer to have and improve upon. Over the years, the JavaScript language has continued to provide more methods for managing data structures, from Object.keys to Object.values and so on. One of my favorites is Object.entries, an API that provides the keys… Continue reading Object.entries

Monitor Your SEO Placement with SEObase

Search engine optimization is big business; both SEO experts and their customers want to track the effectiveness of their keywords, campaigns, and competition. To get and measure those results, however, you need the right tooling monitor those results. SEObase is an awesome tool for doing just that — monitoring keywords and results across search engines!… Continue reading Monitor Your SEO Placement with SEObase

Use Logpoints!

There’s sometimes a tribal attitude about how web developers should be debugging their code and solving problems. There’s the console.log loyalists, then there’s the debugger/breakpoint maximalists. I worked on the Firefox DevTools debugger for years and I can tell you my philosophy — use whichever tool helps you get the job done! I use console.log… Continue reading Use Logpoints!

Insert Cursor at Any Position at Command Line

As much as I enjoy writing lengthy pieces of JavaScript APIs, techniques, and other tech brilliance, I very much enjoy providing people quick tips to make their daily dev lives better. This is one such post. Oftentimes I’m working with long command line directives, and as you can imagine, I usually screw up the spelling… Continue reading Insert Cursor at Any Position at Command Line

Use Touch ID for sudo on Mac

The landscape of security is changing quite a bit. We’ve gone from basic username and password to 2FA, facial recognition, fingerprint recognition, and so on. Hell, my Mac unlocks simply when I have my Apple Watch near by. In the end, I probably use the Mac fingerprint key the most. One functionality that still requires… Continue reading Use Touch ID for sudo on Mac

Open a Browser Tab with DevTools Open by Default

Using command line flags is a great way to subtly improve productivity. Whether saving yourself keystrokes or enabling specific features, it’s very much worth knowing the application flags available to you. To launch a new tab with DevTools in Chrome, you can use the –auto-open-devtools-for-tabs command line flag: /Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary –auto-open-devtools-for-tabs https://davidwalsh.name… Continue reading Open a Browser Tab with DevTools Open by Default


Knowing what input type you’ve received is hugely important in JavaScript, which is a big reason for Flow and TypeScript’s rise. One such case where it’s useful to know what an object represents is if the input is a string or a React element. To detect if an object is a React element, you can… Continue reading React.isValidElement

What I’m Thankful For: 2020 Edition

My parents loathe when I use poor language but luckily they don’t read this blog so I’ll just be blunt: 2020 has been an absolute shit show. COVID-19 has been a world-wide source of devastation to lives, jobs, and our quality of life. That said, I’ve found myself feeling incredibly grateful at the end. Despite… Continue reading What I’m Thankful For: 2020 Edition

Node isConnected

Every so often I discover a property in JavaScript objects that I didn’t know existed, oftentimes using another trick to accomplish the same functionality. One such property I just learned about was isConnected, a node property that attached to a context (i.e. document). Here’s how to use Node.prototype.isConnected: const el = document.createElement(‘div’); el.isConnected; // false… Continue reading Node isConnected

Detect Changed Files with git

There are numerous reasons to want to know which files have been added or modified in a git repository, one of which is your text editor highlighting those files. Another use case is running tasks against only files which are presently changed, like lint or other validation routines. So how can we identify files which… Continue reading Detect Changed Files with git

Categorized as Front-End, JS

Remove the Search Input Clear(x) Icon

I really appreciate the amount of different <input> elements we’ve received over the past decade. These elements don’t just bring a new semantic advantage, but also provide UI helpers, which in many cases are useful. In a recent case, I found a UI element not useful: the x (clear) icon in <input type=”search” /> elements.… Continue reading Remove the Search Input Clear(x) Icon

React v16.13.0 – React Blog

Today we are releasing React 16.13.0. It contains bugfixes and new deprecation warnings to help prepare for a future major release. New Warnings Warnings for some updates during render A React component should not cause side effects in other components during rendering. It is supported to call setState during render, but only for the same… Continue reading React v16.13.0 – React Blog

Introducing the New React DevTools – React Blog

We are excited to announce a new release of the React Developer Tools, available today in Chrome, Firefox, and (Chromium) Edge! What’s changed? A lot has changed in version 4! At a high level, this new version should offer significant performance gains and an improved navigation experience. It also offers full support for React Hooks,… Continue reading Introducing the New React DevTools – React Blog

Chart.js A Simple yet flexible JavaScript charting for designers & developers

Chart.js was first introduced in year 2013, for 3 years of intensive development by many contributors, it has became quite a powerful open source Javascript charting plugin. It’s designed for both developers and designers. It supports 8 types of charts – Line, Bar, Radar, Polar Area, Pie & Doughnut, Scales charts. With version 2.0, you… Continue reading Chart.js A Simple yet flexible JavaScript charting for designers & developers

Animated Animals in CSS and SVG

Learn some interesting animation techniques involving Sass and SVG filters for realistic motion effects on the example of animated animals. View demo Download source Today we want to show you how the clever use of HTML, CSS sequenced animations, and SVG filters can bring to life one of the most unlikely (yet adorable) things to… Continue reading Animated Animals in CSS and SVG

Create A Little Easter Egg in Your Website with Dom-Animator

Web developer is not boring, sometimes we like to sneak in some funny comment, interesting variable names, hidden features or hidden images some where in the website, hopefully someone will notice it and have a good laugh. Here we have a nifty Javascript library called Dom-Animator. You can use it to show small ascii animations… Continue reading Create A Little Easter Egg in Your Website with Dom-Animator

Easy to Use Dialog System for Modern Web Apps

BasicModal is a dialog-system for modern web-apps. It includes everything you need to display information, ask questions or request input from the user. Modals can be chained, so you can easily build a setup-assistant or show dialogs in a predefined order. Invalid input can be highlighted and handled using the included function. BasicModal uses SASS,… Continue reading Easy to Use Dialog System for Modern Web Apps