Skip to main content
Module

x/deno/js/process.ts>run

A modern runtime for JavaScript and TypeScript.
Go to Latest
function run
import { run } from "https://deno.land/x/deno@v0.17.0/js/process.ts";

Spawns new subprocess.

Subprocess uses same working directory as parent process unless opt.cwd is specified.

Environmental variables for subprocess can be specified using opt.env mapping.

By default subprocess inherits stdio of parent process. To change that opt.stdout, opt.stderr and opt.stdin can be specified independently - they can be set to either ProcessStdio or rid of open file.