[bug] dependency supports-ansi
has issues related to triviality (and more)
#58
Labels
supports-ansi
has issues related to triviality (and more)
#58
According to Socket,
supports-ansi
has several issues; the most notable of which is that it is considered a trivial package. It also does not support Cygwin, which is unacceptable. There do not appear to be any good alternatives, but the reason why we perform this check in the first place is to determine whether to use color, so we may be able to usesupports-color
in the near-term.Depending on whether we swap out
cli-color
forcolorette
andcolorette
were to perform this check itself, we may be able to remove this dependency entirely. There are, however, additional uses for determining whether ANSI is supported other than coloring (e.g., bold, underline, italic), which is something to consider.Additionally, we should detect whether we are running in a browser and convert ANSI-escaped text streams to HTML for document and devconsole output (as seen in
ansi-to-html
), but that should only be anticipated once isomorphic support is added.The text was updated successfully, but these errors were encountered: