BufferedProcess
Summary
A wrapper which provides standard error/output line buffering for Node's ChildProcess.
Instance Methods
constructor(options)
Runs the given command by spawning a new child process.
Parameters
Argument | Description |
---|---|
options | An {Object} with the following keys: |
onWillThrowError(callback)
Will call your callback when an error will be raised by the process. Usually this is due to the command not being available or not on the PATH. You can call `handle()` on the object passed to your callback to indicate that you have handled this error.
Parameters
Argument | Description |
---|---|
callback | {Function} callback |
Returns
Return Values |
---|
Returns a {Disposable} |
kill()
Terminate the process.