Skip to main content
Module

x/dtils/mod.ts>shCapture

The best unofficial library of utilities for Deno applications
Go to Latest
function shCapture
import { shCapture } from "https://deno.land/x/dtils@2.6.0/mod.ts";

Executes command in default shell. Returns errorLines and logLines containing all the lines written to stdout and stderr, respectively. Throws if command exits with a non-zero status.

Parameters

command: string
optional
options: ExecOptions = [UNSUPPORTED]