Skip to content
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

chalk compatibility #2

Closed
khrome opened this issue Dec 16, 2014 · 3 comments

Comments

@khrome
Copy link
Owner

commented Dec 16, 2014

Many app developers use chalk and colour, support those interfaces for drop-in replacement.

Also clarify how ascii-art supports block formatting without formatter wrapping (showing mangled examples from other popular libs).

@khrome khrome self-assigned this Dec 16, 2014

@khrome

This comment has been minimized.

Copy link
Owner Author

commented Dec 18, 2016

Now supports chalk.

@khrome khrome closed this Dec 18, 2016

@luiguild

This comment has been minimized.

Copy link

commented Sep 2, 2019

how to use chalk on output image? it's possible?

@khrome

This comment has been minimized.

Copy link
Owner Author

commented Sep 2, 2019

chalk only supports images insofar as you manually iterate through and apply style code (which is probably not what you want). Chalk is designed for simple string output and the interface adapter ascii-art has supports only those use cases. But because the image output is a string it is possible, just probably not desirable. I would urge you to check out the already released submodules (which make up the rebuild of ascii-art, that I'm currently finalizing for release in the next week) at ascii-art-image and ascii-art-ansi if you need more features than 1.x provides!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.