-
Notifications
You must be signed in to change notification settings - Fork 15
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
Replace chalk with ansis #738
Comments
you can replace chalk with ansis. - import chalk from 'chalk'
+ import ansis, {red, bold, underline, etc...} from 'ansis' Replace variable: - chalk.red(text)
+ ansis.red(text)
// or
+ red(text) Replace text: - chalk.red('text')
+ ansis.red('text')
// or
+ red`text` Replace chains: - chalk.red.bold(text)
+ ansis.red.bold(text)
// or
+ red.bold(text)
// or
+ red`${bold(text)}` |
Thanks @webdiscus!! I will check it out right now. What is the difference to picocolor? |
@BioPhoton Picocolor is very primitive and doesn't supports runtimes like Bun, Deno, Next.JS. |
Convince, but your link is broken. |
sorry, the link above is fixed |
Description is updated, labeled correctly and moved into ready for refinement :) |
there is some problem (missed colors) with pico -> alexeyraspopov/picocolors#55 (comment) |
I forgot to update the title 🙈 We switched to ansis. The title was the only description I forgot to update 🤷♂️ Sry for that ✌️ |
User story
As a developer I want to use latest tools, minimize the dependency graph.
chalk has a couple op disadvantages:
Benchmarks of alternative options:
https://github.com/webdiscus/ansis#benchmark
Acceptance criteria
Implementation details
Relevant steps for our codebase:
The text was updated successfully, but these errors were encountered: