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

x/deno/cli/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.28.0/cli/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.