Skip to content

[Breaking - Node 20] Replace yoctocolors-cjs with styleText #1850

@SBoudrias

Description

@SBoudrias

Replacing a third-party library with the Node 22 built-in styleText util.

import { styleText } from 'node:util';

console.log(styleText('red', 'Error!'));
console.log(styleText(['bold', 'green'], 'Success!'));

This will need to go out with a Node 20 minimum version breaking release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions