{"library":"poor-mans-t-sql-formatter","type":"library","category":null,"description":"A pure JavaScript library, transpiled from the C# Poor Man's T-SQL Formatter library, for formatting T-SQL (Transact-SQL) code. Version 1.6.10 is the latest stable release. It provides SQL formatting, minimization, and obfuscation via a single function with options. Key differentiators: it's JavaScript-native (works in browser and Node.js), has a simple API with multiple output formats (plain text, HTML, token list, parse tree), but is approximately 8x slower than the original C# library, making it unsuitable for large batch processing. The command-line interface is distributed as a separate package.","language":"javascript","status":"active","version":"1.6.10","tags":["javascript","sql","formatter","sql formatter","tsql","formatting","minimizer","obfuscator","pretty-printer"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install poor-mans-t-sql-formatter","imports":["import { formatSql } from 'poor-mans-t-sql-formatter'","import pmtsqf from 'poor-mans-t-sql-formatter'","const { formatSql } = require('poor-mans-t-sql-formatter'); const result = formatSql(sql, { indent: '  ', maxLineWidth: 120 });"]},{"cmd":"yarn add poor-mans-t-sql-formatter","imports":[]},{"cmd":"pnpm add poor-mans-t-sql-formatter","imports":[]}],"homepage":"https://github.com/TaoK/poor-mans-t-sql-formatter-npm-package#readme","github":"https://github.com/TaoK/poor-mans-t-sql-formatter-npm-package","docs":null,"changelog":null,"pypi":null,"npm":"poor-mans-t-sql-formatter","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}