image-to-ascii
image-to-ascii copied to clipboard
No colors when running via systemd (no tty)
If I run my node server via a systemd service, this breaks the image-to-ascii colors. Using environment variables such as FORCE_COLOR=3 has no effect.
Is this not supported at all or do you know how to make your library work in a non tty environment 🙈?
I figured out why FORCE_COLOR=3 isn't working 😅: One of your other packages ansy uses a very old version of supports-color which doesn't have the FORCE_COLOR checks 🙈. Those checks were introduced with supports-color >= 6 (https://github.com/chalk/supports-color/releases/tag/v6.0.0).
https://github.com/IonicaBizau/ansy/blob/fd942e0fd3829367611d3f7e1fbc64c5b4cb8a32/package.json#L31
Any contributions for this would be very much appreciated! Thank you very much!
I've been taking a look at this. I think the change needs to be in ansy. It'll require a bit of refactoring as updating ansy to use supports-color 6.x.x does include breaking changes.
I think this should be fixed in the last updates. If the issue is still there, please reopen it. 😄