Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@shepherdorg/ts-exec

stefaneg227MIT5.2.0TypeScript support: included

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

exec, cmd, typescript, command

readme

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.