File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -490,13 +490,15 @@ Option | Description | Default
490
490
--- | --- | ---
491
491
` cwd ` | Current working directory of the child process |
492
492
` env ` | Environment key-value pairs |
493
- ` stdio ` | Child's stdio configuration |
493
+ ` stdio ` | Child's stdio configuration | ` pipe `
494
494
` detached ` | The child will be a process group leader |
495
495
` uid ` | Sets the user identity of the process |
496
496
` gid ` | Sets the group identity of the process |
497
497
` verbose ` | Display messages on the console | ` false `
498
498
` encoding ` | Sets the encoding of the output string | ` utf8 `
499
499
500
+ More info: [ ` child_process.spawn() ` ] ( https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options )
501
+
500
502
``` js
501
503
spawn (' cat' , ' test.txt' ).then ((content ) => {
502
504
console .log (content);
You can’t perform that action at this time.
0 commit comments