deno
18fe3d1e - feat(ext/process): add collector utilities to `ChildProcess.stdout` & `ChildProcess.stderr` (#30552)

Commit
1 year ago
feat(ext/process): add collector utilities to `ChildProcess.stdout` & `ChildProcess.stderr` (#30552) This commit adds `SubprocessReadableStream` interface that are used for `ChildProcess.stdout` and `ChildProcess.stderr`. It's an extension to a regular `ReadableStream` that provides convenience methods to collect the output and parse it with `.bytes()`, `.arrayBuffer()`, `.text()` and `.json()` helper methods (similarly to the ones available on `Response`). Closes https://github.com/denoland/deno/issues/30323 --------- Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Author
Parents
Loading