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

Don't touch process.stdin #44

Closed

Conversation

rafaelcastrocouto
Copy link

Commenting the lines that refer to process.stdin prevents the windows error messages on #42

Maybe we should add if (/^win/.test(process.platform)) on those lines or find a real fix for the stdin problem.

Commenting the lines that refer to `process.stdin` prevents the windows error messages on Experience-Monks#42
@StreetStrider
Copy link

if (/^win/.test(process.platform))

is-windows

@rafaelcastrocouto
Copy link
Author

@StreetStrider is-windows just checks process.platform === 'win32' ...
Seems to me that /^win/.test(process.platform) is more consistent since we can have a win64 in the future.
What's your opinion?

@StreetStrider
Copy link

@rafaelcastrocouto, this is why package exists. For me it is up to package to take care of such details. When win64 actually shows this package will get an update (it have 5K downloads per day).

@rafaelcastrocouto
Copy link
Author

Guess you are right ... I did a pull request there!

@mattdesl
Copy link
Contributor

mattdesl commented Mar 6, 2016

Thanks for the PR, I just pushed something similar. Will revisit later this or next week when I get my hands on a Windows PC for testing.

@mattdesl mattdesl closed this Mar 6, 2016
@rafaelcastrocouto rafaelcastrocouto deleted the patch-1 branch March 6, 2016 21:15
@rafaelcastrocouto
Copy link
Author

👍 thx @mattdesl

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.

3 participants