Promise based command execution. With buffer control, fairly good tests and a test double.

Usage no npm install needed!

<script type="module">
  import shepherdorgTsExec from 'https://cdn.skypack.dev/@shepherdorg/ts-exec';


TS Exec

Promise based convenience wrapper around child_process.ExecFile. Emphasis on testability, so it comes with a convenient test double, enabling you to unit test your CLI controlling programs.

Optional collection of stdout/stderr process outputs to be returned with the promise result.

Option to provide string to be written to stdin of the child process.

See the specs for example usage.