{"library":"sql-format","type":"library","category":null,"description":"SQL Formatter is a JavaScript library for pretty-printing SQL queries, supporting Standard SQL, Couchbase N1QL, IBM DB2, and Oracle PL/SQL dialects. Current stable version is 2.3.2, with maintenance releases over years. Key differentiator: lightweight, no dependencies, supports placeholder replacement (named and indexed). Lacks TypeScript support in v2 but widely used for formatting SQL in Node.js and browser. Alternatives exist (e.g., prettier-plugin-sql) but sql-formatter is simpler and more focused.","language":"javascript","status":"maintenance","version":"2.3.2","tags":["javascript","sql","formatter","format","n1ql"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install sql-format","imports":["import sqlFormatter from 'sql-formatter';","import { format } from 'sql-formatter';","sqlFormatter.format('SELECT *', { language: 'n1ql', indent: '  ' });"]},{"cmd":"yarn add sql-format","imports":[]},{"cmd":"pnpm add sql-format","imports":[]}],"homepage":"https://github.com/apla/sql-format#readme","github":"https://github.com/apla/sql-format","docs":null,"changelog":null,"pypi":null,"npm":"sql-format","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}