# Install prettier with Homebrew, apk, Nix, pacman

Code formatter for JavaScript, CSS, JSON, GraphQL, Markdown, YAML. Version 3.9.4 via Homebrew; verified 2026-07-01.

## Install

```sh
sudo av install brew:prettier
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install prettier
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add prettier
```

  Evidence: Alpine Linux edge package indexes: prettier from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#prettier
```

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

- pacman (92%):

```sh
sudo pacman -S prettier
```

  Evidence: Arch Linux sync databases: prettier from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Package facts

- **Package key:** brew:prettier
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/prettier>
- **Version:** 3.9.4
- **Source summary:** Code formatter for JavaScript, CSS, JSON, GraphQL, Markdown, YAML
- **Homepage:** <https://prettier.io/>
- **Repository:** <https://github.com/prettier/prettier>
- **Upstream docs:** <https://prettier.io/docs/index.html>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/prettier/-/prettier-3.9.4.tgz>
- **Last updated:** 2026-07-01T03:51:29Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- prettier (cli)
- prettier (alias)

## Dependencies

- node

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.9.4
- Package-manager updated: 2026-07-01
- Local data: ok
- Upstream repository: https://prettier.io/
- info: Release/tag comparison is only available for GitHub repositories.

## 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: package.json, package.yaml, .prettierrc, .prettierrc.json, .prettierrc.yml, .prettierrc.yaml, .prettierrc.json5, .prettierrc.js, prettier.config.js, .prettierrc.ts, prettier.config.ts, .prettierrc.mjs, prettier.config.mjs, .prettierrc.mts, prettier.config.mts, .prettierrc.cjs, prettier.config.cjs, .prettierrc.cts, prettier.config.cts, .prettierrc.toml, .editorconfig
## Source Database Details

- **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:** head, stable

## Other Package-Manager Records

- Nix - prettier: normalized package name match | nixpkgs package indexes: pkgs/by-name/pr/prettier/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - prettier - 3.8.3-r0: normalized package name match | Alpine Linux edge package indexes: prettier from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Opinionated code formatter | https://prettier.io/
- apk - prettier-doc - 3.8.3-r0: normalized package name match | Alpine Linux edge package indexes: prettier-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Opinionated code formatter (documentation) | https://prettier.io/
- pacman - prettier - 3.8.1-1: normalized package name match | Arch Linux sync databases: prettier from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | An opinionated code formatter | https://prettier.io


## 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.
- [cbfmt](https://www.automicvault.com/pkg/brew/cbfmt/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter, markdown.
- [sql-formatter](https://www.automicvault.com/pkg/brew/sql-formatter/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter, javascript.
- [air](https://www.automicvault.com/pkg/brew/air/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [alejandra](https://www.automicvault.com/pkg/brew/alejandra/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [astyle](https://www.automicvault.com/pkg/brew/astyle/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [black](https://www.automicvault.com/pkg/brew/black/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [darker](https://www.automicvault.com/pkg/brew/darker/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [djhtml](https://www.automicvault.com/pkg/brew/djhtml/) - Shares av.db curated category or tags: cli, code-formatting, developer-tools, formatter.
- [prettier](https://www.automicvault.com/pkg/npm/prettier/) - Same normalized package name appears in another local ecosystem. Shared terms: code, formatter, prettier.
- [oxfmt](https://www.automicvault.com/pkg/brew/oxfmt/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, formatter, formatting.
- [prettier](https://www.automicvault.com/pkg/npm/prettier/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/prettier.yml](https://github.com/automic-vault/db/blob/main/combined/prettier.yml)


## Sources

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