Skip to content

Latest commit

 

History

History
executable file
·
30 lines (21 loc) · 454 Bytes

README.md

File metadata and controls

executable file
·
30 lines (21 loc) · 454 Bytes

Deno cmd 🦖

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);