macOS
brew install yuicompressorlocal Homebrew formula metadata
sudo port install yuicompressorMacPorts ports tree · www/yuicompressor/Portfile · ソース: api.github.com
brew
yuicompressor のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install yuicompressorlocal Homebrew formula metadata
sudo port install yuicompressorMacPorts ports tree · www/yuicompressor/Portfile · ソース: api.github.com
nix profile install nixpkgs#yuicompressornixpkgs package indexes · pkgs/by-name/yu/yuicompressor/package.nix · ソース: api.github.com
概要
Yahoo! JavaScript and CSS compressor
履歴
YUI Compressor is Yahoo's Java-based JavaScript and CSS minifier from the YUI era. It removes comments and whitespace, shortens local JavaScript symbols when safe, compresses CSS, and became a standard build-step tool before newer JavaScript-native minifiers took over much of the ecosystem.
For package managers, its identity is very CLI-shaped: install a small wrapper around a Java jar, point it at .js or .css files, and produce smaller production assets. That made it easy to package across Homebrew, MacPorts, Maven, npm wrappers, and older Ant-era web build systems.
The project grew out of Yahoo's frontend performance work around the YUI Library. The official project page frames minification as one of the secondary performance techniques used after larger page-design savings, and compares YUI Compressor with tools such as JSMin, the Dojo compressor, and Dean Edwards' Packer.
Technically, YUI Compressor used Mozilla Rhino to tokenize JavaScript instead of relying only on text substitutions. That let it remove whitespace and rename local symbols while taking a defensive approach around difficult JavaScript constructs such as eval and with. CSS compression was also included, using a regular-expression-based minifier lineage credited on the official page.
The public GitHub repository was created in December 2008, while the changelog preserves a longer 2.x release line. The final tagged GitHub release, v2.4.8 'Greendale', was published in July 2013 and focused on compatibility fixes, CSS compression improvements, warning output, parameter parsing, batch modes, and tests.
YUI Compressor became popular because it matched the way web teams shipped assets in the late 2000s and early 2010s: Java was already common in build infrastructure, Ant integration was natural, and the command-line interface fit makefiles, CI jobs, and static asset deployment scripts.
Its official documentation emphasizes byte savings compared with JSMin and safe handling of JavaScript and CSS. Those claims mattered in the pre-bundler period, when teams often concatenated and minified library files directly rather than running a full module pipeline.
Later adoption shifted toward wrapper packages and legacy maintenance. The README documents an npm package that still invokes Java under the hood, showing how the compressor was carried forward into Node-oriented workflows even though its implementation remained a Java command-line tool.
Typical use is batch minification: run the yuicompressor command or jar against JavaScript or CSS input, set the type explicitly when needed, and write to stdout or an output file. The README documents options for character set, line breaking, JavaScript symbol munging, semicolon preservation, and disabling micro-optimizations.
The tool is most relevant today when reproducing older web builds, maintaining projects that were pinned to YUI-era minification behavior, or comparing historical minifier output. It is also a useful example of a minifier that exposes safety knobs for constructs and comments that mattered to production JavaScript/CSS deployment.
YUI Compressor is package-nerd archaeology from the period when frontend optimization was often a Java jar in a build directory. It sits between tiny text filters such as JSMin and modern JavaScript bundler/minifier stacks, and it explains why many old packages still have yuicompressor hooks.
It also shows how a once-central tool can survive as a compatibility package: the web moved on to UglifyJS, terser, esbuild, SWC, and bundlers, but package collections keep YUI Compressor available for old build recipes and reproducible maintenance work.
セキュリティ状態
broad file, network, media, or database tool signal.
リスク blue · 信頼度 中 · tool
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
yuicompressor | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/yui/yuicompressor
インストールメタデータ
| パッケージキー | brew:yuicompressor |
|---|---|
| バージョン | 2.4.8 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/yuicompressor |
| ホームページ | https://yui.github.io/yuicompressor/ |
| リポジトリ | https://github.com/yui/yuicompressor |
| 上流ドキュメント | https://github.com/yui/yuicompressor#readme |
| ライセンス | BSD-3-Clause |
| ソースアーカイブ | https://github.com/yui/yuicompressor/releases/download/v2.4.8/yuicompressor-2.4.8.zip |
| 依存関係 | openjdk |
| Bottle | 利用可能 (対象 all) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | yuicompressor |
| Version Scheme | 0 |
| Revision | 1 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
yuicompressor
nix profile install nixpkgs#yuicompressoryuicompressor
sudo port install yuicompressorソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.