pkg.soopen package index

brew / rank 859

Install prettier with Homebrew, apk, Nix, pacman

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

Additional install commands

macOS

Homebrewverified · 100%
brew install prettier

local Homebrew formula metadata

Linux

Alpine Linux apkverified · 92%
sudo apk add prettier

Alpine Linux edge package indexes · prettier · source: dl-cdn.alpinelinux.org

Nixverified · 92%
nix profile install nixpkgs#prettier

nixpkgs package indexes · pkgs/by-name/pr/prettier/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S prettier

Arch Linux sync databases · prettier · source: geo.mirror.pkgbuild.com

overview

Package summary

Code formatter for JavaScript, CSS, JSON, GraphQL, Markdown, YAML

Commands and aliases

  • prettier

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2017: Prettier was publicly introduced and reached its 1.0 release.
  • 2017–2018: Support expanded across major web languages and data formats.
  • 2023: Prettier 3.0 adopted ECMAScript modules and asynchronous public APIs.

Related projects

  • prettierd provides a persistent daemon around Prettier for lower-latency editor formatting.
  • ESLint complements Prettier: Prettier handles formatting, while ESLint retains responsibility for code-quality rules.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 1 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

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

Config paths the tool may read or write during local use.

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

executables

Installed executables

CommandKindExposureNote
prettiercliglobal executable

freshness

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

page generated2026-11-04
manager version3.9.10
manager updated2026-10-11
local dataok
upstreamnot checked
latest detectednot detected

https://prettier.io/

  • infoRelease/tag comparison is only available for GitHub repositories.https://prettier.io/none confidence

install metadata

Package metadata

Package keybrew:prettier
Version3.9.10
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/prettier
Homepagehttps://prettier.io/
Repositoryhttps://github.com/prettier/prettier
Upstream docshttps://prettier.io/
LicenseMIT
Source archivehttps://registry.npmjs.org/prettier/-/prettier-3.9.10.tgz
Last updated2026-10-11T11:49:55Z
Pulseupdated
Dependenciesnode
Bottleavailable (on all)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameprettier
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

prettier

nix profile install nixpkgs#prettier
  • normalized package name match
  • Matched by: Prettier
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/pr/prettier/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

prettier 3.8.4-r0

Opinionated code formatter

https://prettier.io/

sudo apk add prettier
  • License: MIT
  • Architecture: x86_64
  • Source Package: prettier
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Prettier
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: prettier from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

prettier-doc 3.8.4-r0

Opinionated code formatter (documentation)

https://prettier.io/

sudo apk add prettier-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: prettier
  • normalized package name match
  • Matched by: Prettier
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: prettier-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
pacman95%

prettier 3.8.1-1

An opinionated code formatter

https://prettier.io

sudo pacman -S prettier
  • License: MIT
  • Architecture: any
  • 1 dependencies
  • normalized package name match
  • Matched by: Prettier
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: prettier from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

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