Skip to content

Switch to node:util's styleText API #156

@ericcornelissen

Description

@ericcornelissen

Consider node:util's styleText API for output styling instead of chalk. The main consideration is compatibility with supported Node.js versions1.

I found out about this from the blog post "Dependency-free Command-Line Apps powered by Node.js core modules" and it's also flagged by eslint-plugin-depend.

Footnotes

  1. see https://github.com/ericcornelissen/depreman/issues/156#issuecomment-3325698417

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeChanges that are not backwards compatibledependenciesChanges to the project's dependenciespendingThis cannot be worked on yetrefactorChanges existing code without changing functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions