Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dtils/sh.ts>exec

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

Executes segments as a child process, printing the child's output. Throws if the child exits with a non-zero status

Parameters

segments: string[]

The segments to execute. The first should be the file, the rest will be passed as arguments

optional
options: ExecOptions = [UNSUPPORTED]

Returns

Promise<void>