Skip to content

Remove kleur in favor of util.styleText #344

Description

@aarongoldenthal

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions