Skip to content

Commit

Permalink
docs(spawn): link to upstream docs
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Jul 30, 2020
1 parent f4abd47 commit 4d64246
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -490,13 +490,15 @@ Option | Description | Default
--- | --- | ---
`cwd` | Current working directory of the child process |
`env` | Environment key-value pairs |
`stdio` | Child's stdio configuration |
`stdio` | Child's stdio configuration | `pipe`
`detached` | The child will be a process group leader |
`uid` | Sets the user identity of the process |
`gid` | Sets the group identity of the process |
`verbose` | Display messages on the console | `false`
`encoding` | Sets the encoding of the output string | `utf8`

More info: [`child_process.spawn()`](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options)

``` js
spawn('cat', 'test.txt').then((content) => {
console.log(content);
Expand Down

0 comments on commit 4d64246

Please sign in to comment.