Web Tools #438 - VS Code, JS Utilities, Uncats (misc. tools)

Web Tools Weekly
WEB VERSION
Tools for Web Developers

Issue #438 • December 9, 2021

Advertisement
Retool is the Fast Way to Build Internal Tools
Visually design apps that interface with any database or API. Switch to code nearly anywhere to customize how your apps look and work. With Retool, you ship more apps and move your business forward—all in less time.

Try it for free
Retool

If you're working on an app with a bunch of different events taking place on various elements (e.g. click, mouseover, etc.), you might need to log certain events in your browser's console as part of your debugging process.

This can get tedious as you add specific logs for certain cases. A useful feature in Chromium-based browsers is the monitorEvents() method of the Console Utilities API.

To log events on a targeted element, the syntax looks like this:

monitorEvents(document, 'click');

You would enter this line directly inside your browser's console. It takes two arguments: The object on which you want to monitor events and the event you want to monitor (in quotes as a string).

In the above example I would be logging all click events that take place anywhere on the document object. With that in place, any clicks would produce something like the following in the browser's console:

monitorEvents Example in DevTools

Notice each of the click events logged is able to be expanded (notice the triangles), which then allows you to fully inspect the event as needed.

This process will continue indefinitely until you reload the page or until you use the unmonitorEvents() method, passing in the same object:

unmonitorEvents(document);

You can use this feature in the DevTools on any web page, you just have to know which object you want to target and what event. I've set up a small demo page with some basic instructions for a few examples you can try, shown here:

monitorEvents(window.btn2, 'mouseover');
monitorEvents(window, 'resize');
monitorEvents(document.body, 'contextmenu');

As this demonstrates, you can monitor mouse events, window resize, context menu (i.e. when the user right-clicks), etc.

This won't work in Firefox, only in Chrome, Edge, Brave, and similar – basically any Chromium browsers. There are a few solutions for Firefox discussed in this Stack Overflow thread, but nothing built-in that I know of.

For more info on monitorEvents(), here are a few links:


Now on to this week's tools

VS Code Tools, Code Playgrounds, etc.

Retool is the Fast Way to Build Internal Tools
Visually design apps that interface with any database or API. Switch to code to customize how your app looks and works. The result? You can ship the business critical tools you need in days, not months.  sponsored 

vscode.dev
ICYMI, this is a lightweight version of VS Code running fully in the browser. Open a folder on your local machine and start coding, no install required.

Bookmarks
VS Code extension that lets you create bookmarks to navigate through your codebase using marked positions.

Git Automator
VS Code extension to automate your commit messages with smart auto-prefill and use shortcuts to add, commit, and push.

SQLime
An online SQLite playground for debugging and sharing SQL snippets, like JSFiddle, but for SQL instead of JavaScript.

SQLime

Git Tree Compare
VS Code extension that helps you compare your working Git tree against a branch, tag, or commit in a natural folder tree structure or a flat list.

Go Playground WASM
A version of play.golang.org (the Go language playground) that runs completely in the browser.

Copilot.vim
A Vim plugin for GitHub Copilot, the recently released AI pair programming tool. Requires Neovim 0.6 or higher.

OpenVSCode Server
Run upstream VS Code on a remote machine with access through a modern web browser from any device, anywhere.

Stepsize
VS Code extension that integrates with Jira, GitHub, BitBucket, Slack, and more, so you can manage technical debt and prioritize refactoring work.

Vandelay
VS Code extension for automating imports in JavaScript and Python. But apparently it can't import potato chips or matches.

JavaScript Utilities

Find That Pod
Finding podcasts is hard. Let me help. Subscribe to Find that Pod, a FREE weekly newsletter bringing you 5 awesome, hand-picked podcasts you'll love.  sponsored 

International Telephone Input
A JavaScript utility for validating international telephone numbers. It adds a flag dropdown to any input, detects the user's country, displays a relevant placeholder, and provides formatting/validation methods.

Popup Cookie Creator
Online tool to build and customize a cookie consent popup for your website. The resulting code is hosted with the creator, but I suppose you could self host it if you copy the JS/CSS after you build it.

Tiny UI Toggle
A small library to create various types of elements that can be toggled: Accordion, tabs, dropdown, modal, dialog, etc.

ws
A simple to use, blazing fast, and thoroughly tested WebSocket library for Node.js.

memoize-one
A memoization library that only remembers the latest invocation.

PptxGenJS
A library to build PowerPoint presentations with JavaScript and integrates with Node, Angular, React, and Electron. Uses Open Office XML, which is compatible with Apple Keynote and other presentation tools.

VanillaTreeViewer
A minimalist component for displaying an interactive file browser in a blog post, documentation, tutorial, etc.
 
VanillaTreeViewer

linq
A JavaScript implementation of the .NET LINQ library that contains all the original .NET methods plus a few additions.

it
A collection of utility modules to make dealing with async iterators easier.

kill-port
Node utility to kill the process running on any given port. Exports a single function that takes a port number as the argument and returns a promise.

next-cookie
A cookie serializer and deserializer library for Next.js.

safety-match
Rust-style pattern matching for TypeScript, JavaScript, and Flow.
 

The Uncategorizables

Discover Amazing Podcasts
Need something new to listen to while you're working on your latest web project? Check out Find That Pod, a weekly newsletter with 5 hand-picked podcasts for your listening pleasure.  sponsored 

Datree
A CLI tool to prevent Kubernetes misconfigurations from reaching production by ensuring manifests and Helm charts follow best practices and your own policies.

CUE
An open source language, with a rich set of APIs and tooling, for defining, generating, and validating all kinds of data: configuration, APIs, database schemas, code, etc.

Cadhub
A platform to try out and select Code-CAD packages, for those working with CAD technology.

Restic
A modern backup program that can back up your files from Linux, BSD, Mac, and Windows to different storage types, including self-hosted and online services.

Shottr
A screenshot utility for Mac that can create full-browser screenshots, pixelate private info, add annotations, and lots more.

Humor API
An API with access to over 50,000 categorized jokes and over 100,000 memes.

Excalideck
Online app for authoring slide decks that look hand-drawn, based on Excalidraw, the popular whiteboard tool for hand-drawn diagrams.
 
Excalideck

Framestack
A directory of categorized frameworks and libraries to help you choose what technology to use for a specific type of app.

You
A private search engine that summarizes the web for you, with extensible apps, privacy choices, actionable results, and personalization through preferred sources.

Serverless Examples
A collection of boilerplates and examples of serverless architectures built with the Serverless Framework on AWS Lambda, Microsoft Azure, Google Cloud Functions, and more.

Parca
Open source infrastructure-wide continuous profiling that helps you save money, improve performance, and understand incidents better.

On the Release Radar:

Commercial Apps and Classifieds

These are commercial (non-free) tools, paid classifieds, and affiliate links. You can submit a link for consideration or you can buy a classified link (will be marked "ad").

Qodana - JetBrains code quality platform for your favourite CI.

Morning Brew - A daily newsletter to keep you informed & entertained. ad 

Rankwatch - Actionable SEO data tools, rank checking, etc.

RocketHub - Get the best lifetime deals on software.

Alternative Assets - World’s largest alternative investment community. ad 

Stackprint - Web platform to build REST APIs fast without writing code.

Hybiscus - Build beautiful PDF reports using a simple declarative API.
 

A Tweet for Thought

I appreciate Camila Lenis taking the time to summarize my life.

A Tweet for Thought
 

Send Me Your Tools!

Made something? Send links via Direct Message on Twitter @WebToolsWeekly (details here). No tutorials or articles, please. If you have any suggestions for improvement or corrections, feel free to reply to this email.
 

Before I Go...

If you're knowledgeable on different geographic areas around the world, you'll enjoy Click that 'hood!, an interactive game that tests your expertise on different boroughs and neighbourhoods of cities around the world. I'm terrible at this, because I've only lived in one city in my life and even that city was pretty hard for me. The cool thing is, the names are revealed on hover, so you eventually get them all, they're just difficult if you're not familiar with the area.

Thanks to everyone for subscribing and reading!

Keep tooling,
Louis
@WebToolsWeekly

Support this newsletter:
PayPal.me  Patreon / GitHub Sponsors  E-Books / Buy Me a Coffee

Older messages

Web Tools #437 - Learn RegEx, JS Libraries, Testing, React

Thursday, December 2, 2021

Web Tools Weekly WEB VERSION Issue #437 • December 2, 2021 Advertisement The New Tab Page You'll Actually Use Replace your web browser's new tab page with a minimal list of links, grouped and

Web Tools #436 - JS Courses, Frontend Frameworks, SVG, JSON/DB

Thursday, November 25, 2021

Web Tools Weekly WEB VERSION Issue #436 • November 25, 2021 Advertisement Testim.io Testim is an AI-powered UI test automation tool that gives developers an easy way to author and maintain cross-

Web Tools #435 - CSS Tools, JS Utils, Git/CLI Tools

Thursday, November 18, 2021

Web Tools Weekly WEB VERSION Issue #435 • November 18, 2021 The following intro is a paid product review for Retool, a platform that provides a fast way to build internal tools. Like many startups and

Web Tools #434 - JS Quiz, React, Build Tools, Uncats

Thursday, November 11, 2021

Web Tools Weekly WEB VERSION Issue #434 • November 11, 2021 Advertisement Need a Better Way to Test Your Web App? Testim's Advanced AI Automates UI Testing. Your dynamic web application needs test

Web Tools #433 - VS Code Tips, Frameworks, JS Utils, React Native

Thursday, November 4, 2021

Web Tools Weekly WEB VERSION Issue #433 • November 4, 2021 Advertisement Sell. Win. Celebrate. AppSumo. AppSumo is the #1 digital marketplace for entrepreneurs, get your name in front of 1M+

You Might Also Like

Re: Hackers may have stolen everyone's SSN!

Saturday, November 23, 2024

I wanted to make sure you saw Incogni's Black Friday deal, which is exclusively available for iPhone Life readers. Use coupon code IPHONELIFE to save 58%. Here's why we recommend Incogni for

North Korean Hackers Steal $10M with AI-Driven Scams and Malware on LinkedIn

Saturday, November 23, 2024

THN Daily Updates Newsletter cover Generative AI For Dummies ($18.00 Value) FREE for a Limited Time Generate a personal assistant with generative AI Download Now Sponsored LATEST NEWS Nov 23, 2024

📧 Building Async APIs in ASP.NET Core - The Right Way

Saturday, November 23, 2024

​ Building Async APIs in ASP .NET Core - The Right Way Read on: m​y website / Read time: 5 minutes The .NET Weekly is brought to you by: Even the smartest AI in the world won't save you from a

WebAIM November 2024 Newsletter

Friday, November 22, 2024

WebAIM November 2024 Newsletter Read this newsletter online at https://webaim.org/newsletter/2024/november Features Using Severity Ratings to Prioritize Web Accessibility Remediation When it comes to

➡️ Why Your Phone Doesn't Want You to Sideload Apps — Setting the Default Gateway in Linux

Friday, November 22, 2024

Also: Hey Apple, It's Time to Upgrade the Macs Storage, and More! How-To Geek Logo November 22, 2024 Did You Know Fantasy author JRR Tolkien is credited with inventing the main concept of orcs and

JSK Daily for Nov 22, 2024

Friday, November 22, 2024

JSK Daily for Nov 22, 2024 View this email in your browser A community curated daily e-mail of JavaScript news React E-Commerce App for Digital Products: Part 4 (Creating the Home Page) This component

Spyglass Dispatch: The Fate of Chrome • Amazon Tops Up Anthropic • Pros Quit Xitter • Brave Powers AI Search • Apple's Lazy AI River • RIP Enrique Allen

Friday, November 22, 2024

The Fate of Chrome • Amazon Tops Up Anthropic • Pros Quit Xitter • Brave Powers AI Search • Apple's Lazy AI River • RIP Enrique Allen The Spyglass Dispatch is a free newsletter sent out daily on

Charted | How the Global Distribution of Wealth Has Changed (2000-2023) 💰

Friday, November 22, 2024

This graphic illustrates the shifts in global wealth distribution between 2000 and 2023. View Online | Subscribe | Download Our App Presented by: MSCI >> Get the Free Investor Guide Now FEATURED

Daily Coding Problem: Problem #1616 [Easy]

Friday, November 22, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Alibaba. Given an even number (greater than 2), return two prime numbers whose sum will

The problem to solve

Friday, November 22, 2024

​ Use problem framing to define the problem to solve This week, Tom Parson and Krishna Raha share tools and frameworks to identify and address challenges effectively, while Voltage Control highlights