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

Support setting output encoding in exec/execTask #582

Merged
merged 9 commits into from
Oct 21, 2024
Merged

Conversation

niik
Copy link
Member

@niik niik commented Oct 17, 2024

This change mirrors the exec/execFile Node API and lets us pass encoding: buffer to exec/execTask in order to receive stdout/stderr as buffers (instead of strings). This is important when dealing with huge outputs where it might not be possible to convert the entire output to a string (due to V8 string memory limits) and we might need to either stream (already possible using spawn) or grab the entire output as a Buffer which we can then parse into smaller chunks (strings).

@niik niik merged commit dd1f524 into main Oct 21, 2024
9 checks passed
@niik niik deleted the output-encoding branch October 21, 2024 11:42
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.

2 participants