Skip to content

chore: removed "chalk" in favor of node:utils's styleText#250

Closed
jurerotar wants to merge 1 commit into
sindresorhus:mainfrom
jurerotar:chore/remove-chalk
Closed

chore: removed "chalk" in favor of node:utils's styleText#250
jurerotar wants to merge 1 commit into
sindresorhus:mainfrom
jurerotar:chore/remove-chalk

Conversation

@jurerotar
Copy link
Copy Markdown

Hi!

Node 20 and above supports styleText, which is essentially a 1:1 replacement for chalk and similar libraries. This PR replaces chalk with this node-native solution.

I've also removed ava from dependency list, because it appears to be unused.

If the PR is not wanted, I apologize and feel free to close!

@sindresorhus
Copy link
Copy Markdown
Owner

I plan to do this eventually, but styleText has a lot of bugs and missing features before v24, so I don't plan to do it until I can target Node.js 24. Thanks for the suggestion though.

@jurerotar
Copy link
Copy Markdown
Author

Sorry, I wasn’t aware! Thank you for considering it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants