sql-lexer

JSON →
library 0.2.2 ·javascript
verified Jun 5, 2026

An SQL lexer for JavaScript targeting standard SQL92, SQL2011, MySQL, and SQLite. Current stable version is 0.2.2. The library aims to produce tokens suitable for building parsers, syntax highlighters, and other SQL tooling. It is still early in development (pre-1.0), with Postgres support planned but not yet implemented. Differentiator: focuses on multiple SQL dialects (MySQL, SQLite) beyond standard SQL, intended as a base for higher-level tools like migration generators and schema translators. However, documentation and ecosystem are minimal, and the API may change significantly before a 1.0 release.