holywell

JSON →
library 1.8.10 ·javascript
verified Jun 7, 2026

An opinionated SQL formatter implementing Simon Holywell's sqlstyle.guide with zero dependencies. Current stable version is 1.8.10 (as of Oct 2024). It enforces specific formatting rules such as river alignment (right-aligned keywords), keyword uppercasing, and consistent indentation. Unlike general-purpose SQL formatters (e.g., sql-formatter or pgFormatter), holywell strictly follows a single style guide with minimal configuration, making output deterministic. It supports CLI (glob patterns, --check, --write) and programmatic usage via named export formatSQL. Requires Node.js ≥18 and ships TypeScript types. Does not support custom configuration or multiple dialects beyond standard SQL.