rw-sql-parser

JSON →
library 1.0.1 ·javascript
verified Jun 5, 2026

A lexer and parser for basic SQL SELECT queries, written in JavaScript using JISON. This package is a fork of Forward's SQL Parser, with added support for hyphens in literals. It tokenizes SQL strings into a stream of tokens and parses them into a Select object with properties for where, group, order, and limit. Version 1.0.1 is the current stable release. It only supports basic SELECT statements and lacks full SQL coverage. The package is primarily intended for Node.js environments and requires CoffeeScript for building from source.