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

Module should allow to write to stream #1

Closed
SBoudrias opened this issue Aug 25, 2015 · 3 comments
Closed

Module should allow to write to stream #1

SBoudrias opened this issue Aug 25, 2015 · 3 comments

Comments

@SBoudrias
Copy link

Right now this module writes directly to process.stdout. I believe it'd be better if it wrote to a given stream.

@sindresorhus
Copy link
Owner

Why? The cursor is only on stdout. What's your use-case?

@SBoudrias
Copy link
Author

This is true, but having it on a custom stream could allow you to pipe the output somewhere else, and ease testing in isolation.

I'm actually not sure how much it'll actually help, I'm still toying around concepts to easily test cli programs.

@sindresorhus
Copy link
Owner

This was fixed in 750b9a5.

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

No branches or pull requests

2 participants