json-colorizer icon indicating copy to clipboard operation
json-colorizer copied to clipboard

Consider using colorette instead of chalk

Open kibertoad opened this issue 4 years ago • 2 comments

https://www.npmjs.com/package/colorette

  1. Up to two times faster;
  2. Zero dependencies;
  3. Much simpler library.

If accepted, I could provide a PR for the conversion.

kibertoad avatar Sep 17 '21 12:09 kibertoad

@kibertoad we should just fork this one and use the fork in pino-pretty if the PR is not accepted.

capaj avatar Nov 19 '21 10:11 capaj

I have forked it and switched to colorette. You can install the fork from here: https://www.npmjs.com/package/@capaj/json-colorizer

capaj avatar Nov 19 '21 11:11 capaj

Better late than never, but I just released a new version that uses colorette instead of chalk. Glad I switched, it's much faster!

joeattardi avatar Apr 19 '24 17:04 joeattardi

woohoo!

kibertoad avatar Apr 19 '24 18:04 kibertoad