Prettier SQL

JSON →
library 5.1.1 ·javascript
verified Jun 5, 2026

Prettier SQL v5.1.1 is a JavaScript library for pretty-printing SQL queries. It supports 12 dialects including MySQL, PostgreSQL, BigQuery, and Spark. It started as a port of a PHP library but has diverged considerably. Released regularly via npm, it offers both programmatic and CLI usage. Key differentiators: extensive dialect support, uppercase/lowercase control, placeholder replacement, and zero runtime dependencies. Types are included.