Igniculus (v1.5.0) is a SQL syntax highlighter and logger for Node.js ≥4. It colorizes SQL output in the terminal using ANSI escape codes. Unlike heavier formatters, it is unadorned and fully customizable: users can define styles (foreground, background, bold, inverse, underline) per token type (keywords, constants, operators, comments, data types, etc.) and even supply custom keyword lists. It is available as a CommonJS package with no runtime dependencies. The project is in maintenance mode (last release 2018), with no active development or ESM support.
npm install igniculusNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes igniculus with default options and highlights a SELECT query including delimited identifiers, string constants, and numbers.
Use require('igniculus') instead of import.Store the logger returned by factory: const logger = igniculus(options); then always use logger(sql).
Upgrade Node.js to version 4 or higher.
Use a library like chalk to detect TTY and conditionally apply colors, or redirect with an appropriate viewer.
Consider alternatives like sql-formatter + chalk, or yasql for active development.
Replace 'import igniculus from "igniculus"' with 'const igniculus = require("igniculus")'.Use 'const logger = igniculus();' then call 'logger(query)'.
Call igniculus() at least once before using igniculus.log(). Or use the returned logger directly.
No dependency data recorded yet.