A fork of sql-formatter-plus that adds Snowflake-specific syntax support (JSON references, etc.) for formatting/pretty-printing SQL queries. Currently at v1.1.0 with low release cadence. Supports Standard SQL, N1QL, DB2, and PL/SQL dialects. Provides placeholder replacement, configurable indent/uppercase, and works in Node.js and browsers. Ships TypeScript type definitions. The primary differentiator is its Snowflake focus, though the official Snowflake dialect is still pending.
npm install snowsql-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Formats a simple SQL query with uppercase keywords and indentation.
Use `import sqlFormatter from 'snowsql-formatter'` and call `sqlFormatter.format(...)` directly.
Update imports to use 'snowsql-formatter' and reinstall.
Use `language: 'sql'` until a dedicated SnowSQL dialect is released.
Always quote values in params object: `params: {foo: "'bar'"}`Still works in v1.1.0, but consider using alternatives like template literals.
Use `import sqlFormatter from 'snowsql-formatter'` (no curly braces).
Run `npm install snowsql-formatter` or clear cache with `npm cache clean --force`.
Use one of: 'sql', 'n1ql', 'db2', 'pl/sql'.
Use `params: {foo: "'bar'"}` instead of `params: {foo: 'bar'}`.No dependency data recorded yet.