Golfy

JSON →
library 0.1.0 ·javascript
verified Jun 4, 2026

An aggressive JavaScript minifier specialized for code golf that prioritizes output length over stability, compatibility, and execution performance. Version 0.1.0 is a work-in-progress, experimental tool that performs transformations like replacing require() calls with inline expressions, stripping unnecessary variables, and other hacky optimizations. Compared to general-purpose minifiers (e.g., terser, uglify-js), golfy will break code in non-standard environments and is not suitable for production use. It is designed exclusively for competitive code golfing where byte count is the only metric that matters.