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
256 color support? #20
Comments
Nice. I considered adding 256 colors a few months ago, but realized I've never had a need for it, so I didn't want to complicate Chalk with it. Makes much more sense to be in a separate module like yours :) Do let me know if there's any other way Chalk could improve though. You say it's a drop-in replacement, but there are several differences. Like you use lowercase for Sidenote: Would love to get some help on #16. We could both benefit from that ;) |
FWIW - I'll take a look at #16 but don't have any immediate ideas. |
re: #16 & #21. https://github.com/aceface/crayon Here is the simple benchmark I made and the results of running it:
The performance problems with chalk are mostly because each time you get a property on it, like The function creation and definition of all the properties is a much, much bigger deal than One very small difference in crayon vs chalk is that I used
|
Thanks for looking into this @ccheever :) I'll see what I can do to optimize Chalk. |
I made a drop-in replacement for chalk that has 256 color support and a few other things.
https://github.com/ccheever/chalk256
Are you interested in adding any of that to chalk? I can create a pull request, but would have to do a bunch of work to make the code match your style, etc., so wanted to ask before putting in the time.
The text was updated successfully, but these errors were encountered: