macOS
brew install prettierlocal Homebrew formula metadata
brew / rank 859
Code formatter for JavaScript, CSS, JSON, GraphQL, Markdown, YAML. Version 3.9.10 via Homebrew; verified 2026-10-11. Also installable with nix: nix profile install nixpkgs#prettier.
install
brew install prettierlocal Homebrew formula metadata
sudo apk add prettierAlpine Linux edge package indexes · prettier · source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#prettiernixpkgs package indexes · pkgs/by-name/pr/prettier/package.nix · source: api.github.com
sudo pacman -S prettierArch Linux sync databases · prettier · source: geo.mirror.pkgbuild.com
overview
Code formatter for JavaScript, CSS, JSON, GraphQL, Markdown, YAML
history
Prettier is an opinionated formatter that parses source code and prints a consistent representation. It supports JavaScript and numerous adjacent web, configuration, and prose formats.
James Long created Prettier as an opinionated JavaScript formatter, and the project was publicly introduced in early 2017. Prettier 1.0 followed in April 2017 after rapid early adoption.
The project expanded beyond JavaScript during 2017 and 2018, adding TypeScript, CSS, GraphQL, JSON, Markdown, EditorConfig, YAML, HTML, Vue, Angular, MDX, and an extensible plugin ecosystem. Prettier 3.0 moved the codebase to ECMAScript modules and overhauled its public and plugin APIs.
Prettier spread through local development dependencies, editor integrations, Git hooks, and continuous-integration checks. Its official documentation recommends pinning an exact project-local installation and documents integrations with editors, linters, and staged-file tooling.
Typical workflows run `prettier . --write` to rewrite files and `prettier . --check` in CI. Prettier resolves configuration from the formatted file upward through the directory tree and intentionally provides no global configuration.
Prettier helped establish opinionated, deterministic formatting as a standard component of JavaScript and web-development toolchains. Its parser-and-printer model, deliberately small option surface, multi-language support, and plugin interface shifted formatting away from large collections of stylistic lint rules.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
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.
Config paths the tool may read or write during local use.
package.jsonpackage.yaml.prettierrc.prettierrc.json.prettierrc.yml.prettierrc.yaml.prettierrc.json5.prettierrc.jsprettier.config.js.prettierrc.tsprettier.config.ts.prettierrc.mjsprettier.config.mjs.prettierrc.mtsprettier.config.mts.prettierrc.cjsprettier.config.cjs.prettierrc.ctsprettier.config.cts.prettierrc.toml.editorconfigexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
prettier | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:prettier |
|---|---|
| Version | 3.9.10 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/prettier |
| Homepage | https://prettier.io/ |
| Repository | https://github.com/prettier/prettier |
| Upstream docs | https://prettier.io/ |
| License | MIT |
| Source archive | https://registry.npmjs.org/prettier/-/prettier-3.9.10.tgz |
| Last updated | 2026-10-11T11:49:55Z |
| Pulse | updated |
| Dependencies | node |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | prettier |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
prettier
nix profile install nixpkgs#prettierprettier 3.8.4-r0
Opinionated code formatter
sudo apk add prettierprettier-doc 3.8.4-r0
Opinionated code formatter (documentation)
sudo apk add prettier-docprettier 3.8.1-1
An opinionated code formatter
sudo pacman -S prettiersource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.