pgsql-minify

JSON →
library 1.0.7 ·javascript
verified Jun 5, 2026

A TypeScript library that minifies valid Postgres SQL by tokenizing the statement and reconstructing it with standardized case and spacing. Version 1.0.7 is the current stable release, updated as needed. Key differentiator: provides a lexer, configurable keyword sets, and comment handling, making it suitable for postgres-specific SQL formatting without full parsing.