{"library":"sql-highlight","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"6.1.0","tags":["javascript","sql","syntax","highlight","highlighter","typescript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install sql-highlight","imports":["import { highlight } from 'sql-highlight'","import { getSegments } from 'sql-highlight'","import type { HighlightOptions } from 'sql-highlight'"]},{"cmd":"yarn add sql-highlight","imports":[]},{"cmd":"pnpm add sql-highlight","imports":[]}],"homepage":"https://github.com/scriptcoded/sql-highlight#readme","github":"ssh://git@github.com/scriptcoded/sql-highlight","docs":null,"changelog":null,"pypi":null,"npm":"sql-highlight","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}