Apply a simple text-based pass that shortens JavaScript names, removes comments, and collapses whitespace.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
The source is scanned with regular expressions to rename simple declarations, remove line and block comments, and collapse whitespace. It is text substitution rather than an AST transform, so syntax and scope are not fully understood.
const apiKey = 'secret123';
function fetchData(url) {
return fetch(url);
}
const _a = 'secret123'; function _b(url) { return fetch(url); }
Demo bundles, browser experiments, and size comparisons use this lightweight pass.