# 使用 Homebrew, Nix 安装 js-beautify

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

## 安装

```sh
sudo av install brew:js-beautify
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install js-beautify
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#js-beautify
```

  证据: nixpkgs package indexes: pkgs/by-name/js/js-beautify/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:js-beautify
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/js-beautify>
- **版本:** 2.0.3
- **来源摘要:** JavaScript, CSS and HTML unobfuscator and beautifier
- **主页:** <https://beautifier.io>
- **上游文档:** <https://beautifier.io>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/js-beautify/-/js-beautify-2.0.3.tgz>
- **最后更新:** 2026-07-01T18:24:39Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- css-beautify (cli)
- html-beautify (cli)
- js-beautify (cli)
- css-beautify (别名)
- html-beautify (别名)
- js-beautify (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.0.3
- 管理器更新时间: 2026-07-01
- 本地数据: OK
- 上游仓库: https://beautifier.io
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

JS Beautifier, distributed as js-beautify, is a formatter and de-obfuscation tool for JavaScript, JSON, CSS, SCSS, HTML, and related web syntaxes. It predates the formatter monoculture around Prettier and remains a familiar CLI and web tool for turning minified or packed frontend code back into readable source.

### 项目历史

The GitHub repository was created in December 2008, and the README describes the tool as a way to reformat bookmarklets, ugly JavaScript, scripts packed by Dean Edwards' packer, and output from JavaScript obfuscators. The project grew from JavaScript beautification into a multi-language web-source formatter with command-line binaries for JavaScript, CSS, and HTML.

The npm package history begins in July 2012 and shows steady releases across the 1.x line for more than a decade. The project also maintains beautifier.io as the browser-facing interface, making the same lineage visible both to CLI users and to developers pasting code into an online beautifier.

### 采用历史

JS Beautifier spread through npm, Homebrew, and direct browser use because it solved a common web-development task before formatter-on-save workflows were standard. Its GitHub repository has thousands of stars and many forks, and the package-manager footprint reflects long-lived demand for a simple beautify/unobfuscate command.

### 使用方式

The CLI is used to re-indent source files, inspect minified production JavaScript, normalize generated HTML or CSS, and run formatter settings from a .jsbeautifyrc file. It is more of a readability and recovery tool than a modern opinionated style enforcer.

### 为什么软件包爱好者会关心

js-beautify is significant because it captures an earlier era of JavaScript tooling: before bundlers, minifiers, linters, and opinionated formatters all converged into modern frontend toolchains, a small beautifier package could become infrastructure for editors, web tools, distro packages, and debugging workflows.

### 时间线

- 2008: GitHub repository created for js-beautify.
- 2012: npm package publication history began with 0.1.8.
- 2013: 1.x releases established the package as a stable CLI-era JavaScript beautifier.
- 2024: 1.15.0 shipped in the long-running 1.x release line.
- 2026: 2.x releases appeared on npm and the beautifier.io interface identified itself with the 2.x line.

### Related projects

- Related projects include beautifier.io, the Python jsbeautifier distribution, Prettier, ESLint formatting workflows, Dean Edwards' packer, and other source beautifiers embedded in editors and web debugging tools.

### 来源

- <https://beautifier.io/>
- <https://formulae.brew.sh/formula/js-beautify>
- <https://github.com/beautifier/js-beautify>
- <https://github.com/beautifier/js-beautify/blob/main/CHANGELOG.md>
- <https://registry.npmjs.org/js-beautify>
- <https://www.npmjs.com/package/js-beautify>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .jsbeautifyrc
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** js-beautify
- **Version Scheme:** 0
- **Revision:** 0
- **Conflicts With:** jsbeautifier
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Nix - js-beautify: normalized package name match | nixpkgs package indexes: pkgs/by-name/js/js-beautify/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [minify](https://pkg.so/zh-hans/brew/minify/) - Shares pkgdb curated category or tags: cli, css, developer-tools, html, javascript.
- [oxfmt](https://pkg.so/zh-hans/brew/oxfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, formatters, javascript.
- [beautysh](https://pkg.so/zh-hans/brew/beautysh/) - Shares pkgdb curated category or tags: beautifier, cli, developer-tools, formatter, formatters.
- [bibtex-tidy](https://pkg.so/zh-hans/brew/bibtex-tidy/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, formatters, javascript.
- [shfmt](https://pkg.so/zh-hans/brew/shfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, formatters.
- [prettier](https://pkg.so/zh-hans/brew/prettier/) - Shares pkgdb curated category or tags: cli, css, developer-tools, formatter, javascript.
- [angular-cli](https://pkg.so/zh-hans/brew/angular-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, web-development.
- [buildifier](https://pkg.so/zh-hans/brew/buildifier/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, formatters.
- [js-beautify](https://pkg.so/zh-hans/npm/js-beautify/) - Same normalized package name appears in another local ecosystem. Shared terms: beautifier, beautify, cli, css, css-beautify.
- [js-beautify](https://pkg.so/zh-hans/npm/js-beautify/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/js-beautify.yml](https://github.com/mxcl/pkgdb/blob/main/combined/js-beautify.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
