Skip to content

Instantly share code, notes, and snippets.

@phxgg
phxgg / check-npm-cache.sh
Last active September 26, 2025 06:55
This script will check your npm cache and find if any of the affected packages was pulled in your machine. `chmod +x check-npm-cache.sh` before usage. Requires jq, use `brew install jq` to install. Only tested on MacOS
#!/usr/bin/env bash
set -euo pipefail
packages_json='[
{"name":"backslash","version":"0.2.1"},
{"name":"chalk-template","version":"1.1.1"},
{"name":"supports-hyperlinks","version":"4.1.1"},
{"name":"has-ansi","version":"6.0.1"},
{"name":"simple-swizzle","version":"0.2.3"},
{"name":"color-string","version":"2.1.1"},
// paste this in the console before starting EZ Clap
const gameArea = document.getElementById('game-area');
function waitForClassRemoval(element, className, callback) {
const observer = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
if (mutation.attributeName === 'class') {
if (element.classList.contains(className)) {
console.log(`Class ${className} added. Waiting for removal...`);