sql-mapper

JSON →
library 1.2.1 ·javascript
verified Jun 5, 2026

sql-mapper is a Node.js SQL mapper library inspired by MyBatis, providing a template-based approach to write SQL queries in XML or JS object format. Version 1.2.1 is the latest stable release. It allows dynamic SQL generation with conditions, loops, and fragments, similar to MyBatis. Different from ORMs like Sequelize, it gives full control over SQL while reducing boilerplate. The package is lightweight, with no production dependencies, and supports both CommonJS and ESM via bundlers.