Commit 640e5ea

Anton Medvedev <anton@medv.io>
2022-06-14 18:04:15
Update docs
1 parent 3afe5ad
Changed files (1)
README.md
@@ -134,10 +134,19 @@ class ProcessOutput {
   readonly stderr: string
   readonly signal: string
   readonly exitCode: number
-  toString(): string
+  toString(): string // Comined stdout & stderr.
 }
 ```
 
+The output of the process is captured as is. Usually, programs print a new line
+`\n` at the end. If `ProcessOutput` used as an argument to some other `$` process,
+**zx** will use stdout and trim new line.
+
+```js
+let date = await $`date`
+await $`echo Current date is ${date}.`
+```
+
 ## Functions
 
 ### `cd()`