sql-params-format v2.0.0 extends pg-format with named parameter support for SQL query formatting. It allows using %I, %s, and %L placeholders with both positional and named arguments, and automatically converts Moment.js objects to Date objects. The library is stable with low release cadence. Differs from pg-format by supporting named parameters, while being a thin wrapper; ideal for dynamic query building in Node.js.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Default import is the named parameter formatter. The package is ESM-only as of v2? Actually package.json has no "type": "module", but the README shows CommonJS style. Assuming legacy CJS.
CommonJS usage; no named export for 'format'. Actually the module exports a single function, so require returns it directly.
Packages does not ship TypeScript types; may need @types/ manual.
Demonstrates named parameter formatting for SQL queries using %I, %s, %L placeholders with an object of values. Also shows fallback positional usage.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.