sql-highlight
JSON →A pure JavaScript library for syntax-highlighting SQL queries, supporting both terminal (ANSI escape codes) and HTML output. Current stable version is 6.1.0, actively maintained with frequent releases. It has zero runtime dependencies, ships TypeScript definitions, and offers a simple API with a single highlight function and a getSegments method for custom rendering. Unlike heavier alternatives like Prism or highlight.js, sql-highlight focuses solely on SQL and requires no CSS or language grammars beyond its built-in parser.
Traffic · last 30 days stale · no recent hits
total hits 19
actors 4 distinct systems
last hit 17d ago human
top countries 🇸🇬 Singapore · 🇺🇸 United States · VN · 🇨🇳 China · 🇩🇪 Germany
Resources
packagesql-highlight ↗