Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chalk alternatives #17

Closed
Lehoczky opened this issue May 19, 2024 · 6 comments
Closed

Chalk alternatives #17

Lehoczky opened this issue May 19, 2024 · 6 comments

Comments

@Lehoczky
Copy link
Contributor

There are a number of alternatives to chalk which all tries to be a leaner, more performant alternative:

@Lehoczky
Copy link
Contributor Author

We could also want about colors.js, since it is unmaintained, and had a "regression" in their last releases: Marak/colors.js#285

@43081j
Copy link
Contributor

43081j commented May 20, 2024

chalk is an interesting one - since 5.x they have no runtime dependencies, so it isn't anywhere near as bad as it used to be

i think we should document the alternatives here but not necessarily pull it into the linter yet.

especially since chalk 5 is 44KB/5KB (install size / minified size), while picocolors is 5.2KB/1.7KB

its also worth mentioning the latest node includes styleText which can be used in common/basic use cases at least (assuming you can require such a node version):
https://nodejs.org/docs/latest/api/util.html#utilstyletextformat-text

@zloirock
Copy link
Contributor

zloirock commented Jun 27, 2024

I think that the current version of chalk is fine and it's not required. Yes, it's not a tiny package, but it's not a reason to insist on replacement.

@43081j
Copy link
Contributor

43081j commented Jun 28, 2024

im going to close this for now at least since chalk is no longer bloated so much 👍

@webdiscus
Copy link

@Lehoczky,

here is the compare of most popular chalk alternatives: chalk, ansis, kleur, ansi-colors, kolorist, colorette, picocolors, cli-color, colors-cli, colors.js

@dei8bit
Copy link

dei8bit commented Jan 11, 2025

@Lehoczky,

here is the compare of most popular chalk alternatives: chalk, ansis, kleur, ansi-colors, kolorist, colorette, picocolors, cli-color, colors-cli, colors.js

I absolutely love the sincerity of that readme, this is definitely how all the benchmarks in the dev world should be done.

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

No branches or pull requests

5 participants