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 setting different maxBuffer values for stdout/stderr #966

Merged
merged 1 commit into from Apr 9, 2024

Conversation

ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented Apr 8, 2024

This starts implementing #930, starting with the maxBuffer option.

This is the beginning of a series of PRs to add the following syntax, to allow some options to have different values for stdout and stderr.

execa(..., {maxBuffer: {stdout: 10, stderr: 20}});

The other options are verbose (which is the most useful one in that respect, since users might want stderr to be more verbose than stdout during debugging), stripFinalNewline, buffer, lines and encoding. This PR adds the base for the next PRs, so it is bigger.

@sindresorhus sindresorhus merged commit fdffcb6 into main Apr 9, 2024
12 checks passed
@sindresorhus sindresorhus deleted the fd-max-buffer branch April 9, 2024 04: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.

None yet

2 participants