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

Allow binary input/output #55

Closed
wants to merge 1 commit into from
Closed

Allow binary input/output #55

wants to merge 1 commit into from

Conversation

ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented Sep 3, 2024

Opening this PR but closing it too. This is just meant for posterity.

I was trying to figure out how much was required to implement binary input/output, which this PR does (without the tests).

I think it's a little too much logic.

Binary input/output is useful in some cases, such as compression, cryptography (including hashes and randomness), some network protocols, and some memory- or bandwidth-sensitive use cases.

However, users can work around this by passing fs.createWriteStream() to the stdout option, or fs.createReadStream() to the stdin option. Note: they first need to wait for the spawn event.

Based on this, I will close this PR but leave it there. Please let me know if you come to different conclusions from that experiment.

@ehmicky ehmicky closed this Sep 3, 2024
@ehmicky ehmicky deleted the binary branch September 3, 2024 07:41
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.

1 participant