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

Polyfill process.stdin and process.stdout #952

Closed
franciscop opened this issue Aug 2, 2022 · 2 comments
Closed

Polyfill process.stdin and process.stdout #952

franciscop opened this issue Aug 2, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@franciscop
Copy link

What is the problem this feature will solve?

Allow for people to use process.stdin and process.stdout as expected. Allow those to work with libraries that require them. In my specific case, allow spinnies to work spinnies => readline => process.stdin/out.

This is a follow-up/prework needed to fix #311

What is the feature you are proposing to solve the problem?

Polyfill Bun.stdin and Bun.stdout into process.stdin and process.stdout

What alternatives have you considered?

Create the polyfill myself, however I'm stuck here:

console.log(Bun.stdin.stream(), Bun.stdout.stream());
// ReadableStream { } ReadableStream { }

How do I get the "WritableStream" from Bun.stdout?

@franciscop franciscop added the enhancement New feature or request label Aug 2, 2022
@xhyrom
Copy link
Collaborator

xhyrom commented Aug 4, 2022

Duplicate of #894

@xhyrom xhyrom marked this as a duplicate of #894 Aug 4, 2022
@xhyrom xhyrom closed this as completed Aug 4, 2022
@xhyrom xhyrom closed this as not planned Won't fix, can't repro, duplicate, stale Aug 4, 2022
@xhyrom
Copy link
Collaborator

xhyrom commented Aug 4, 2022

Closed as not planned because this is duplicate (no because this is not planned), follow original issue for more informations.

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

No branches or pull requests

2 participants