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.
npm install golfyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs golfy globally and minifies a simple JavaScript expression, showing the shortened output.
Do not use golfy for production code. Only use for code golf where runtime is controlled.
Pin version if using in reproducible builds, but expect breaking changes.
Review output carefully. Test minified code to ensure intended behavior.
Use only well-known Node.js APIs and verify output on your target Node version.
Ensure npm global install location (e.g., /usr/local/bin) is in PATH, or use npx golfy.
Transpile code to ES5 or use a compatible version; golfy may not support all ES6+ features.
Ensure required modules are installed in the project or switch to Node.js built-ins.
No dependency data recorded yet.