# Install prettier with Homebrew, apk, Nix, pacman

Code formatter for JavaScript, CSS, JSON, GraphQL, Markdown, YAML. Version 3.9.6 via Homebrew; verified 2026-07-22. Also installable with nix: nix profile install nixpkgs#prettier.

## 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
- **Version:** 3.9.6
- **Source summary:** Code formatter for JavaScript, CSS, JSON, GraphQL, Markdown, YAML
- **Homepage:** <https://prettier.io/>
- **Repository:** <https://github.com/prettier/prettier>
- **Last updated:** 2026-07-22T08:06:49Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- prettier (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 3.9.6

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


## Combined YAML source

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


## Sources

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