io/process: add StdioCollector data stream parser

This commit is contained in:
outfoxxed 2025-06-09 22:26:34 -07:00
parent 0224fa942b
commit 2b01a75679
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
3 changed files with 67 additions and 4 deletions

View file

@ -22,8 +22,8 @@
/// Process {
/// running: true
/// command: [ "some-command", "arg" ]
/// stdout: SplitParser {
/// onRead: data => console.log(`line read: ${data}`)
/// stdout: @@StdioCollector {
/// onStreamFinished: console.log(`line read: ${this.text}`)
/// }
/// }
/// ```