# 使用 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
- **版本:** 2.0.3
- **来源摘要:** JavaScript, CSS and HTML unobfuscator and beautifier
- **主页:** <https://beautifier.io>
- **最后更新:** 2026-07-01T18:24:39Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.0.3
## 项目历史与用法

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
## 其他软件包管理器记录

- 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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
