squel - SQL query string builder
JSON →squel is a flexible and powerful SQL query string builder for JavaScript, supporting SELECT, UPDATE, INSERT, and DELETE queries with method chaining. It works in Node.js and browsers, supports parameterized queries for safe value escaping, and can be customized for any SQL command. Version 5.12.5 is the latest stable release. It is lightweight (~7 KB min+gzip) and actively maintained on GitHub, though the maintainer suggests considering more actively developed alternatives like Knex. Squel includes support for MySQL-specific commands and auto-quoting of field names. It ships TypeScript types and runs on Node >= 0.12.0.
Resources
packagesafe-squel ↗