macOS
brew install closure-compilerlocal Homebrew formula metadata
brew
JavaScript optimizing compiler. Version 20260629 via Homebrew; verified 2026-07-01.
install
brew install closure-compilerlocal Homebrew formula metadata
sudo apt install closure-compilerDebian stable package indexes · closure-compiler · source: deb.debian.org
overview
JavaScript optimizing compiler
history
Closure Compiler is Google's JavaScript checker and optimizer, descended from the Closure Tools release that made Google's internal large-scale JavaScript tooling available to external developers. Its package-manager story is unusual because the compiler is a Java project with Maven distribution, npm wrappers, and OS package formulas rather than a single canonical CLI channel.
Google introduced Closure Tools in 2009, including Closure Compiler, Closure Library, Closure Templates, and Closure Inspector. The compiler's role was to parse JavaScript, perform type and syntax checks, remove dead code, and rewrite code for smaller downloads and faster execution.
The current GitHub repository is maintained by Google and documents the compiler as a whole-program optimizer whose strongest mode, ADVANCED, expects code written with Closure Compiler's assumptions in mind. The README also records the project's long relationship with Closure Library style modules and its more limited fit with modern arbitrary JavaScript bundles.
Google's launch post tied Closure Tools to JavaScript-heavy products such as Gmail, Google Docs, and Google Maps, which made the compiler historically important as a public version of infrastructure used in large browser applications.
Distribution broadened beyond direct Java JAR usage: the upstream README points to Maven artifacts and notes npm/Yarn installation through the separate google-closure-compiler npm packaging maintained outside Google. The Homebrew, Debian, and Ubuntu package-manager facts in the input show that the CLI also became a conventional system package.
Typical CLI use compiles one or more JavaScript inputs to an output file, with SIMPLE or ADVANCED optimization levels. The compiler can also check types and conformance, transpile newer JavaScript for older browsers, emit source maps, and split output into loadable chunks.
The project is best treated as a specialized optimizer for codebases prepared for its rules, especially when property renaming, externs, and Closure-style module conventions matter.
Closure Compiler matters to package nerds because it crosses packaging cultures: Java artifacts, npm command wrappers, Linux distro packages, and Homebrew all expose the same optimizer with different expectations about runtime, update cadence, and command names.
It is also a useful example of a package whose canonical upstream warns that one popular distribution path, npm, is built by an outside maintainer from a separate repository, so package provenance matters.
security posture
No matching local secret-handling manifest was found for closure-compiler. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
closure-compiler | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://developers.google.com/closure/compiler
install metadata
| Package key | brew:closure-compiler |
|---|---|
| Version | 20260629 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/closure-compiler |
| Homepage | https://developers.google.com/closure/compiler |
| Repository | https://github.com/google/closure-compiler |
| Upstream docs | https://developers.google.com/closure/compiler/docs/overview |
| License | Apache-2.0 |
| Source archive | https://search.maven.org/remotecontent?filepath=com/google/javascript/closure-compiler/v20260629/closure-compiler-v20260629.jar |
| Last updated | 2026-07-01T00:07:44Z |
| Pulse | updated |
| Dependencies | openjdk |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | closure-compiler |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
closure-compiler 20130227+rhino-2
JavaScript optimizing compiler
https://developers.google.com/closure/compiler/
sudo apt install closure-compilerlibclosure-compiler-java 20130227+rhino-2
JavaScript optimizing compiler - library package
https://developers.google.com/closure/compiler/
sudo apt install libclosure-compiler-javalibclosure-compiler-java-doc 20130227+rhino-2
JavaScript optimizing compiler - Javadoc
https://developers.google.com/closure/compiler/
sudo apt install libclosure-compiler-java-docclosure-compiler 20130227+rhino-2
JavaScript optimizing compiler
https://developers.google.com/closure/compiler/
sudo apt install closure-compilerlibclosure-compiler-java 20130227+rhino-2
JavaScript optimizing compiler - library package
https://developers.google.com/closure/compiler/
sudo apt install libclosure-compiler-javalibclosure-compiler-java-doc 20130227+rhino-2
JavaScript optimizing compiler - Javadoc
https://developers.google.com/closure/compiler/
sudo apt install libclosure-compiler-java-docsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.