spinnies icon indicating copy to clipboard operation
spinnies copied to clipboard

Use kleur instead of chalk?

Open muuvmuuv opened this issue 5 years ago • 2 comments

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?

muuvmuuv avatar Sep 26 '19 08:09 muuvmuuv

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?

jbcarpanelli avatar Sep 26 '19 19:09 jbcarpanelli

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.

muuvmuuv avatar Sep 27 '19 15:09 muuvmuuv