denoexec

.github/workflows/release.yml semantic-release Conventional Commits KeepAChangelog License

deno land deno version TypeScript GitHub release

A higher level wrapper around Deno.run.

Inspired by:

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