sequencework-sql-global

JSON →
library 2.4.1 ·javascript
verified Jun 5, 2026

A JavaScript/TypeScript template literal tag that formats SQL queries into {text, values} objects compatible with node-postgres. Version 2.4.1 is the current stable release. This is a fork of @sequencework/sql that adds global support by fixing `instanceof` behavior across multiple `require` calls via a type tag. Key differentiators: lightweight (~50 lines), 100% test coverage, supports nested tags and conditional expressions, and includes helpers like `sql.raw` for unescaped values. Released infrequently, primarily bug fixes.