A lightweight JavaScript library for formatting basic SQL statements (DML + queries). Version 0.1.0 is a direct conversion of Hibernate's BasicFormatterImpl Java code. No updates since initial release. Simple API with a single `format()` function. Limited to basic formatting—no support for advanced SQL features or database-specific syntax. Not actively maintained.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
The library does not support ESM imports; use CommonJS require.
No default export; the require returns an object with a format method.
Shows basic usage of sqlformatter.format to format a simple SQL query.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.