denoexec
A higher level wrapper around
Deno.run
.
Inspired by:
- https://github.com/sindresorhus/execa
- https://github.com/brad-jones/goexec
- https://github.com/brad-jones/dexeca
Why not https://github.com/gpasq/deno-exec?
I don't want to supply a string as the command to execute, quoting becomes a nightmare, an explicitly defined array of arguments is much more reliable in my experience.
Why not https://github.com/acathur/exec?
It's too basic, can not easily buffer input or output.
Usage
import { exec } from "https://deno.land/x/denoexec/mod.ts";
await exec({ cmd: ["ping", "1.1.1.1"] });
see ./example/main.ts for more details