-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
add execa.stdout()
shortcut
#14
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env node | ||
'use strict'; | ||
console.error(process.argv[2]); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,14 @@ Returns a [`child_process` instance](https://nodejs.org/api/child_process.html#c | |
|
||
The `child_process` instance is enhanced to also be promise for a result object with `stdout` and `stderr` properties. | ||
|
||
### execa.stdout(file, [arguments], [options]) | ||
|
||
Same as `execa()`, but returns only `stdout`. | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jamestalmage You mentioning something about memory benefits. Should we mention that? Do you have any source for it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not true until you set There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I know, but it will be true, so let's pretend it is, and we can add that info later. Just wondering now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No source, I just assumed if you ignore it it dumps the output and does not concat it all together in memory. I think it's a safe assumption. |
||
### execa.stderr(file, [arguments], [options]) | ||
|
||
Same as `execa()`, but returns only `stderr`. | ||
|
||
### execa.shell(command, [options]) | ||
|
||
Execute a command through the system shell. Prefer `execa()` whenever possible, as it's both faster and safer. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deferring this until #24 is done.