sql-tag

JSON →
library 1.0.1 ·javascript
verified Jun 5, 2026

A template tag for writing elegant parameterized SQL queries using ES2015 tagged template literals. Current stable version is 1.0.1, with a maintenance-only release cadence. It outputs a structured object with the SQL query string and its values, directly compatible with pg, mysql, mysql2, and sequelize (via sequelize-sql-tag). Key differentiators: lightweight, zero dependencies, framework-agnostic, but does not provide escaping safety. Last released in 2018.