{"library":"pg-formatter","type":"library","category":null,"description":"A PostgreSQL SQL syntax beautifier that is a thin Node.js wrapper around the Perl-based pgFormatter (https://github.com/darold/pgFormatter). Version 2.0.8 is current stable; released via npm, maintained by Gajus Kuizinas. Requires Perl on the host system. Ships TypeScript type definitions. Supports customizable formatting options like keyword/function case, indentation spaces/tabs, comma breaking, anonymization, placeholder regex, and comment stripping. Provides both programmatic API and CLI tool. Key differentiators: leverages the mature pgFormatter Perl engine, supports all PostgreSQL-specific syntax, configurable via options map matching pgFormatter flags.","language":"javascript","status":"active","version":"2.0.8","tags":["javascript","beautifier","formatter","postgres","sql","typescript"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install pg-formatter","imports":["import { format } from 'pg-formatter'","import pgFormatter from 'pg-formatter'; pgFormatter.format(sql);","const { format } = await import('pg-formatter');"]},{"cmd":"yarn add pg-formatter","imports":[]},{"cmd":"pnpm add pg-formatter","imports":[]}],"homepage":"https://github.com/gajus/pg-formatter#readme","github":"ssh://git@github.com/gajus/pg-formatter","docs":null,"changelog":null,"pypi":null,"npm":"pg-formatter","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}