runish
v0.1.0
Published
Run shell commands with logs piped to your terminal
Downloads
8
Readme
runish
Run shell commands with logs piped to your terminal.
This is a simple wrapper around Node.js's child_process.spawn which pipes logs to your terminal (stdout/stderr). Useful for building scripts.
$ npm install runishExample
import { run } from "runish";
await run("ls", ["-alh", "./some/dir"], {
// Supports the same options as `child_process.spawn`:
// https://nodejs.org/api/child_process.html#child_processspawncommand-args-options
cwd: "../",
})