Change default behavior for output piping
See original GitHub issueBased on #19, #23,#27 it seems that the textual add-on that npm-watch does has generated a number of issues.
I propose changing the default to simply be passing it along, and if the user explicitly opts-in, the script name could be pre-pended/output would be color stripped.
This allows us to inform the user that the opt-in modes may produce have unpleasant visual effects that are not in our control due to I/O issues.
Tagging @alxndr , @hectormenendez , @domarmstrong, @duivv for feedback as they have been involved in issues/prs related to this issue.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Why does redirection (or piping) change the program's behavior
When the program's standard output is redirected to a file or to a pipe, stdout becomes fully buffered: the output data accumulates in...
Read more >Piping and redirection - Core NGS Tools - UT Austin Wikis
Piping one command's output to another, and then redirecting STDOUT to a file ... Changing default ls behavior.
Read more >How to manipulate files with shell redirection and pipelines in ...
You can manipulate and change the default behavior of these three basic file descriptors by leveraging redirection and pipelines.
Read more >Command Redirection, Pipes - Windows CMD - SS64.com
Redirect command output to the input of handle n ... In a batch file the default behaviour is to read and expand variables...
Read more >I/O Redirection and Pipes - UC Homepages
Unix provides the capability to change where standard input comes from, or where output goes using a concept called Input/Output (I/O) redirection.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

New version is out: https://www.npmjs.com/package/npm-watch/v/0.11.0
@M-Zuber , would the change from @leviwheatcroft be able to be made in master? We’re experiencing log message styles/colors not making their way properly through when npm-watching the process. If inherit was set to
['pipe', 'inherit', 'inherit']we would be all set.Could submit a PR if it made things easier. Literally a 1 parameter change.