From 4d6424680af04ad840a9a9b3442250cbb5406f5b Mon Sep 17 00:00:00 2001 From: MDLeom <43627182+curbengh@users.noreply.github.com> Date: Thu, 30 Jul 2020 02:43:58 +0100 Subject: [PATCH] docs(spawn): link to upstream docs --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7166a3d0..26e4e373 100644 --- a/README.md +++ b/README.md @@ -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);