The Node util.styleText function is now stable in supported version of Node (became stable in Node.js v22.13.0, and Node 20 became end-of-life on 2026-04-30). It provides a means of formatting text for output to a terminal, and the capabilities include all formatting currently performed with kleur (which appears to be unsupported with no commits in 4 years). Moving to util.styleText would allow removed of this dependency. See the docs for additional details.
See pa11y/pa11y#823 and pa11y/pa11y#834.
The Node
util.styleTextfunction is now stable in supported version of Node (became stable in Node.js v22.13.0, and Node 20 became end-of-life on 2026-04-30). It provides a means of formatting text for output to a terminal, and the capabilities include all formatting currently performed withkleur(which appears to be unsupported with no commits in 4 years). Moving toutil.styleTextwould allow removed of this dependency. See the docs for additional details.See pa11y/pa11y#823 and pa11y/pa11y#834.