A super simple and reliable shell execution library.
-
&&
,||
and&
support - Built-in stream management
-
|
support -
>
support - Execution groups (e.g.
(rm file.txt && echo deleted) || echo failed
) - Directory changes (e.g.
cd /tmp/ && ls
)
import { exec } from "https://deno.land/x/2exec/mod.ts";
const processes = await exec("ps -aux");
// exec(command, options);
// ^
const options = {
// Default
ignoreErrors: false,
log: false
}