Skip to content

A JavaScript module for reading an external process' stdout & stderr.

License

Notifications You must be signed in to change notification settings

GirkovArpa/read_pipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

read_pipe()

A JavaScript module for reading the stdout/stderr output of an external process ran with Sciter.JS.

Example

for await (const line of read_pipe(process.stdout)) {
  console.log(`“${line}”`);
}

Another example

See test.js for an example of reading DevTools info piped from a Chrome instance ran with the argument --remote-debugging-port=0.