Skip to content

Replace ansis dependency with util.styleText #530

@silverwind

Description

@silverwind

https://nodejs.org/api/util.html#utilstyletextformat-text-options

Available since Node v20.12.0 which matches the current minimum version of v20.19.0.

It seems the only complication is the generateColor function which currently returns an Ansis color specifier, but this type can be replaced with the type of the first parameter of styleText.

Metadata

Metadata

Assignees

Labels

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions