Open jcbhmr opened 1 year ago
From the readme it would appear that the main purpose is to print colors to the console like this
The main purpose is to be able to generate a string that can be printed in Node.js or the chrome-browser. The string can be stored separately from the console call. The interface needs to be compatible with Jest's diff config. I like the simplicity of picocolors
so I went with it. Unfortunately, it doesn't print colored outputs in the browser.
I don't really know how to explain it further. All other solutions don't satisfy the use case: be small, work in Node and Chrome, provide only non-chainable calls.
👆 That makes it seem like there was a particular issue that you had with the other npm color libraries that you wanted to solve by making this one. I'm wondering what that particular issue is so that I can better understand the purpose behind this package. From the readme it would appear that the main purpose is to print colors to the console like this:
And there's also a note about this package being a fork of picocolors:
I'm particularly interested to know how this package improves over the picocolors package.
But there are a number of other color packages that do similar (if not identical) things. What sets this one apart? 🤔
https://www.npmjs.com/package/colors
https://www.npmjs.com/package/chalk
https://github.com/jorgebucaran/colorette 🌟 this one seems like almost a carbon-copy of this package
https://github.com/doowb/ansi-colors
https://www.npmjs.com/package/cli-color
https://github.com/lukeed/kleur
https://github.com/xpl/ansicolor
This ties in with my #1 idea to re-invent this package as *the* cross-platform color package; a niche that isn't yet filled (all these are Node.js only) ...instead of repeating an oversaturated niche. 👆 but again this is an IDEA and I don't mean to sound like I'm diminishing your VALID USECASE or your code work. this is just a clarification of why (helpful for other users of this package too to know if it's what they want! also helps to know "why tinyrainbow instead of $X?")