Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dtils/mod.unstable.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.2.0/mod.unstable.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]