Skip to content

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
@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.

3 participants