Write simple shell command like a string
Bash
ls .
Deno cmd
cmd("ls .")
Load script
import { cmd } from "https://raw.githubusercontent.com/vaclavbenes/cmd/master/mod.ts";
Write like a script line by line with await
const { code } = await cmd("ls .");
console.log(code)
const { code, stdout, stderr } = await cmd("ls .", "piped""piped");
console.log(code);