# Install js-beautify with Homebrew, Nix

JavaScript, CSS and HTML unobfuscator and beautifier. Version 2.0.3 via Homebrew; verified 2026-07-01.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## Package facts

- **Package key:** brew:js-beautify
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/js-beautify>
- **Version:** 2.0.3
- **Source summary:** JavaScript, CSS and HTML unobfuscator and beautifier
- **Homepage:** <https://beautifier.io>
- **Repository:** <https://github.com/beautifier/js-beautify>
- **Upstream docs:** <https://beautifier.io/>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/js-beautify/-/js-beautify-2.0.3.tgz>
- **Last updated:** 2026-07-01T18:24:39Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- css-beautify (cli)
- html-beautify (cli)
- js-beautify (cli)
- css-beautify (alias)
- html-beautify (alias)
- js-beautify (alias)

## Dependencies

- node

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.0.3
- Package-manager updated: 2026-07-01
- Local data: ok
- Upstream repository: https://beautifier.io
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

- <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>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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 Details

- **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

## Other Package-Manager Records

- 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


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [minify](https://www.automicvault.com/pkg/brew/minify/) - Shares av.db curated category or tags: cli, css, developer-tools, html, javascript.
- [beautysh](https://www.automicvault.com/pkg/brew/beautysh/) - Shares av.db curated category or tags: beautifier, cli, developer-tools, formatter, formatters.
- [oxfmt](https://www.automicvault.com/pkg/brew/oxfmt/) - Shares av.db curated category or tags: cli, developer-tools, formatter, formatters, javascript.
- [tidy-html5](https://www.automicvault.com/pkg/brew/tidy-html5/) - Shares av.db curated category or tags: cli, developer-tools, formatter, html, web-development.
- [angular-cli](https://www.automicvault.com/pkg/brew/angular-cli/) - Shares av.db curated category or tags: cli, developer-tools, javascript, web-development.
- [buildifier](https://www.automicvault.com/pkg/brew/buildifier/) - Shares av.db curated category or tags: cli, developer-tools, formatter, formatters.
- [cljfmt](https://www.automicvault.com/pkg/brew/cljfmt/) - Shares av.db curated category or tags: cli, developer-tools, formatter, formatters.
- [css-crush](https://www.automicvault.com/pkg/brew/css-crush/) - Shares av.db curated category or tags: cli, css, developer-tools, web-development.
- [js-beautify](https://www.automicvault.com/pkg/npm/js-beautify/) - Same normalized package name appears in another local ecosystem. Shared terms: beautifier, beautify, css, css-beautify, html.
- [js-beautify](https://www.automicvault.com/pkg/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/automic-vault/db/blob/main/combined/js-beautify.yml)


## Sources

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