Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use stdout.isTTY, avoid tty. Fixes #67 #80

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexeyten
Copy link

Yet another try to fix #67

https://nodejs.org/api/process.html#a-note-on-process-io

To check if a stream is connected to a TTY context, check the isTTY property.

@alexeyraspopov
Copy link
Owner

Is it documented anywhere which Node.js version was the first to support this field?

@alexeyten
Copy link
Author

I guess it's mature enough 😄

writeStream.isTTY

Added in: v0.5.8
A boolean that is always true.

https://nodejs.org/api/tty.html#writestreamistty

@alexeyten
Copy link
Author

Is there any other concerns?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dynamic require conflict with packagers
2 participants