Mac OS native binary distribution of the Google Closure Compiler, a JavaScript optimizer and minifier. Version 20260428.0.0 corresponds to the Closure-Compiler release 20260428. Frequent updates (weekly). This package is one of platform-specific packages; the main entry point is 'google-closure-compiler'. It automatically detects the platform and installs the appropriate binary. Key differentiator: provides a native Java binary for macOS (x64 and arm64) instead of requiring a separate Java runtime installation, but still requires Java to be available. Unlike other minifiers (Terser, esbuild), it performs advanced optimizations like type-based inlining and dead code elimination. Not intended for direct import; use the main package.
npm install google-closure-compiler-macosNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the main package's compile function with common options for advanced optimization.
npm install google-closure-compiler
Install Java 8 or later (e.g., via OpenJDK).
Do not manually install platform packages; let the main package handle it.
Run: npm install google-closure-compiler
Install OpenJDK 8+ and add 'java' to PATH.
Install the main package: npm install google-closure-compiler