Skip to content

ability so force progress reporting even when output stream is not a TTY #110

@lbeschastny

Description

@lbeschastny

node-progress TTY detection as an awesome feature, but sometimes terminal connection is lost due to stdio piping.

Here is a very simple example:

node ./simple.js 2>&1 | cat

There is no way to check in simple.js that the end of srderr pipe is connected to some terminal, we only know that srderr stream is piped somewhere. But as a user I know it'll end up in a terminal and still want to see a progress bar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions