Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryardley/zx-bug

Demonstrate how zx fails to pass on colors and what to do about it
https://github.com/ryardley/zx-bug

Last synced: 10 days ago
JSON representation

Demonstrate how zx fails to pass on colors and what to do about it

Awesome Lists containing this project

README

        

## `zx` issue with colours

The problem is to do with node not streaming over a TTY. What I have found is the best way to handle it is to change the stdio prop on the spawn options which automatically pipes output to the process.

scripts:

- `yarn bug` - demonstrate the bug
- `yarn fix` - demonstrate a way you might fix it