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

Use kleur instead of chalk? #19

Open
muuvmuuv opened this issue Sep 26, 2019 · 2 comments
Open

Use kleur instead of chalk? #19

muuvmuuv opened this issue Sep 26, 2019 · 2 comments
Labels
question Further information is requested

Comments

@muuvmuuv
Copy link

I recently saw on bundlephobia that the package kleur is way smaller than chalk and has a similiar syntax. Kleur is also dependency free. What are your thoughts about replacing it with chalk to reduce the bundle size?

@jbcarpanelli jbcarpanelli added the question Further information is requested label Sep 26, 2019
@jbcarpanelli
Copy link
Owner

jbcarpanelli commented Sep 26, 2019

Hello @muuvmuuv! I didn't know about kleur! I just took a look at it and looks great.
Aside from the fact that it's smaller than chalk, is there any other reason why you think it is worth to switch to it?

@muuvmuuv
Copy link
Author

I recently came across this post on twitter and thought about my personal project where I have included so many packages where I have never thought about the packages, the packages have included themselves. Or packages that are not three shakeable (e.g. for webpack).
That is why I mostly get Security Vulnerability warnings on GitHub on some of my projects. Even if I'm not directly affected by the method a package in a package in a package has used.

I think in this case here it is not very mandatory but something to overall improve the compatibility and future maintenance of the package.
And filesize is very important for me :D I know from the auto tuning industry that every gramm is worth removing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants