Skip to main content
Module

x/run_simple/mod.ts

Simple run function to execute shell commands in Deno.
Latest
import * as runSimple from "https://deno.land/x/run_simple@2.3.0/mod.ts";

Functions

Runs a command, just like jsonRun or jsonlRun, and always returns an array.

Runs a command, just like jsonRun, but treats each line of the response as a separate JSON object, and returns an array of them.

Runs a command, just like run, but parses the response as JSON if possible. Otherwise, returns it as-is.

Runs command, returning a Promise for what the command prints to STDOUT. If the command exits with non-zero exit code, the promise rejects with a CommandFailure.

Interfaces

What the promise is rejected with, if the command exits with a non-zero exit code.

Extra options, to modify how the command runs.

Type Aliases

Item in the command array.