macOS
brew install closure-compilerlocal Homebrew formula metadata
安装
brew install closure-compilerlocal Homebrew formula metadata
sudo apt install closure-compilerDebian stable package indexes · closure-compiler · 来源: deb.debian.org
概览
JavaScript optimizing compiler
历史
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.
安全态势
没有找到 closure-compiler 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
closure-compiler | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://developers.google.com/closure/compiler
安装元数据
| 软件包键 | brew:closure-compiler |
|---|---|
| 版本 | 20260720 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/closure-compiler |
| 主页 | https://developers.google.com/closure/compiler |
| 仓库 | https://github.com/google/closure-compiler |
| 上游文档 | https://developers.google.com/closure/compiler/docs/overview |
| 许可证 | Apache-2.0 |
| 源码归档 | https://search.maven.org/remotecontent?filepath=com/google/javascript/closure-compiler/v20260720/closure-compiler-v20260720.jar |
| 最后更新 | 2026-07-22T00:15:55Z |
| Pulse | updated |
| 依赖 | openjdk |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-doc来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.