Skip to content

colors are not maintained (and no option to force them) when used in a pipe #8

@thatkookooguy

Description

@thatkookooguy

I added this library to a command I wrote in node and it works great.

I added support for piping my command to one another.
All colors set by me using libraries like chalk, colors or colorette are working regardless of if the command is in a pipe or not.
loader specifically doesn't show the correct colors if the output is not a TTY

command run gs-cli generate company
shows:
image

command run gs-cli generate company | echo
shows:
image

is there a way to force colors?
if not, maybe it will be nice to have an option like that

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions