Google Closure Compiler

JSON →
library 20260602.0.0 ·javascript
verified Jun 4, 2026

The Google Closure Compiler npm package (v20260602.0.0) provides the official Closure Compiler binary for JavaScript checking, optimization, and minification. Released monthly from the upstream Closure Compiler repository. It supports three execution modes: a native binary (Linux/macOS/Windows), a Java jar (requires Java), and an npx runner. Key differentiator: offers both simple and advanced compilation levels (including dead code elimination, type checking, and global renamings) unmatched by simpler minifiers like UglifyJS or Terser. It also includes Grunt and Gulp plugins, and an official webpack plugin. Note: the installed package contains a native binary or Java jar, not JavaScript. The Java version generally yields faster compilations for large projects.