pkg.soopen package index

brew / 排名 2852

使用 Homebrew, apt 安装 closure-compiler

查看 closure-compiler 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install closure-compiler

local Homebrew formula metadata

Linux

Debian apt已验证 · 92%
sudo apt install closure-compiler

Debian stable package indexes · closure-compiler · 来源: deb.debian.org

概览

软件包摘要

JavaScript optimizing compiler

命令和别名

  • closure-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.

时间线

  • 2009: Google introduced Closure Tools and open sourced Closure Compiler.
  • 2014: The current google/closure-compiler GitHub repository metadata was created.
  • 2024: The README documented deprecation or reduced support for some non-ADVANCED and non-Closure-style module paths.

Related projects

  • Closure Library, Closure Templates, and Closure Inspector were announced with Closure Compiler as related Closure Tools.
  • closure-compiler-npm is the separate npm packaging repository named by the upstream README.
  • Modern JavaScript bundlers and minifiers overlap with Closure Compiler in SIMPLE-style minification, while Closure Compiler remains distinctive as a whole-program optimizer.

安全态势

尚未找到受保护工具覆盖

没有找到 closure-compiler 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
closure-compiler可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本20260726
管理器更新时间2026-07-28
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:closure-compiler
版本20260726
软件包管理器Homebrew
主页https://developers.google.com/closure/compiler
最后更新2026-07-28T03:32:42Z
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

closure-compiler 20130227+rhino-2

JavaScript optimizing compiler

https://developers.google.com/closure/compiler/

sudo apt install closure-compiler
  • Section: java
  • Architecture: all
  • 4 依赖
  • normalized package name match
  • 匹配方式:Closure Compiler
Debian stable package indexes · deb.debian.org · Debian stable package indexes: closure-compiler from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libclosure-compiler-java 20130227+rhino-2

JavaScript optimizing compiler - library package

https://developers.google.com/closure/compiler/

sudo apt install libclosure-compiler-java
  • Section: java
  • Architecture: all
  • Source Package: closure-compiler
  • 3 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Closure Compiler
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libclosure-compiler-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libclosure-compiler-java-doc 20130227+rhino-2

JavaScript optimizing compiler - Javadoc

https://developers.google.com/closure/compiler/

sudo apt install libclosure-compiler-java-doc
  • Section: doc
  • Architecture: all
  • Source Package: closure-compiler
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Closure Compiler
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libclosure-compiler-java-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

closure-compiler 20130227+rhino-2

JavaScript optimizing compiler

https://developers.google.com/closure/compiler/

sudo apt install closure-compiler
  • Section: universe/java
  • Architecture: all
  • 4 依赖
  • normalized package name match
  • 匹配方式:Closure Compiler
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: closure-compiler from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libclosure-compiler-java 20130227+rhino-2

JavaScript optimizing compiler - library package

https://developers.google.com/closure/compiler/

sudo apt install libclosure-compiler-java
  • Section: universe/java
  • Architecture: all
  • Source Package: closure-compiler
  • 3 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Closure Compiler
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libclosure-compiler-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libclosure-compiler-java-doc 20130227+rhino-2

JavaScript optimizing compiler - Javadoc

https://developers.google.com/closure/compiler/

sudo apt install libclosure-compiler-java-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: closure-compiler
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Closure Compiler
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libclosure-compiler-java-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation