macOS
brew install sql-formatterlocal Homebrew formula metadata
brew
Whitespace formatter for different query languages. Version 15.8.2 via Homebrew; verified 2026-06-22.
install
brew install sql-formatterlocal Homebrew formula metadata
nix profile install nixpkgs#sql-formatternixpkgs package indexes · pkgs/by-name/sq/sql-formatter/package.nix · source: api.github.com
overview
Whitespace formatter for different query languages
history
SQL Formatter is a TypeScript and JavaScript library and CLI for pretty-printing SQL and related query languages.
The project was created in 2016 and its README says it started as a port of a PHP library before diverging substantially. It grew into a multi-dialect formatter supporting engines and query languages including BigQuery, ClickHouse, DB2, DuckDB, Hive, MariaDB, MySQL, N1QL, Oracle PL/SQL, PostgreSQL, Redshift, Snowflake, Spark, SQLite, Transact-SQL, Trino, and others.
SQL Formatter is primarily distributed through the JavaScript package ecosystem, with the README recommending npm, yarn, pnpm, or bun. The supplied package metadata also shows Homebrew and Nix packaging for the CLI, and the organization maintains an official VS Code extension.
The library exposes a `format` function for applications, while the CLI installs as `sql-formatter` and can format stdin or a file. It accepts language and config options, searches for `.sql-formatter.json` in the current or parent directories, and can also use a config path or JSON string passed with `--config`.
Package nerds care about SQL Formatter because it is a small, installable formatting primitive that can be embedded in editors, scripts, CI, and language tooling. Its appeal is broad dialect coverage and simple package-manager installation rather than a full SQL linting framework.
security posture
No matching local secret-handling manifest was found for sql-formatter. Nucleus package metadata is still published here so future coverage has a stable package URL.
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.
.sql-formatter.jsonexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
sql-formatter | 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.
https://sql-formatter-org.github.io/sql-formatter/
install metadata
| Package key | brew:sql-formatter |
|---|---|
| Version | 15.8.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/sql-formatter |
| Homepage | https://sql-formatter-org.github.io/sql-formatter/ |
| Repository | https://github.com/sql-formatter-org/sql-formatter |
| Upstream docs | https://github.com/sql-formatter-org/sql-formatter#readme |
| License | MIT |
| Source archive | https://registry.npmjs.org/sql-formatter/-/sql-formatter-15.8.2.tgz |
| Last updated | 2026-06-22T14:17:23Z |
| 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 | sql-formatter |
| Version Scheme | 0 |
| Revision | 0 |
| 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.
sql-formatter
nix profile install nixpkgs#sql-formattersource 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.