Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgo committed Jul 18, 2019
1 parent 49fcb7f commit b3a45f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,17 @@ working directory for the subprocess:
const observable = createObservableProcess("node server.js", { cwd: "~/tmp" })
```

You can provide custom environment variables for the process. Without the `env`
parameter it uses the environment variables from the parent process.
You can provide custom environment variables for the process.

```js
const observable = createObservableProcess("node server.js", {
env: { foo: "bar", PATH: process.env.PATH }
})
```

Without the `env` parameter it uses the environment variables from the parent
process.

## Reading output from the process

The observable process collects the output emitted by the ChildProcess through
Expand Down

0 comments on commit b3a45f4

Please sign in to comment.