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

x/ayonli_jsext/lib.deno.d.ts>Deno.RunOptions

A JavaScript extension package for building strong and modern applications.
Latest
interface Deno.RunOptions
Deprecated
Deprecated

This will be removed in Deno 2.0. See the Deno 1.x to 2.x Migration Guide for migration instructions.

import { type Deno } from "https://deno.land/x/ayonli_jsext@v0.9.72/lib.deno.d.ts";
const { RunOptions } = Deno;

Options which can be used with Deno.run.

Properties

cmd: readonly string[] | [string | URL, ...string[]]

Arguments to pass.

Note: the first element needs to be a path to the executable that is being run.

optional
cwd: string

The current working directory that should be used when running the sub-process.

optional
env: Record<string, string>

Any environment variables to be set when running the sub-process.

optional
stdout:
| "inherit"
| "piped"
| "null"
| number

By default subprocess inherits stdout of parent process. To change this this option can be set to a resource ID (rid) of an open file, "inherit", "piped", or "null":

  • number: the resource ID of an open file/resource. This allows you to write to a file.
  • "inherit": The default if unspecified. The subprocess inherits from the parent.
  • "piped": A new pipe should be arranged to connect the parent and child sub-process.
  • "null": This stream will be ignored. This is the equivalent of attaching the stream to /dev/null.
optional
stderr:
| "inherit"
| "piped"
| "null"
| number

By default subprocess inherits stderr of parent process. To change this this option can be set to a resource ID (rid) of an open file, "inherit", "piped", or "null":

  • number: the resource ID of an open file/resource. This allows you to write to a file.
  • "inherit": The default if unspecified. The subprocess inherits from the parent.
  • "piped": A new pipe should be arranged to connect the parent and child sub-process.
  • "null": This stream will be ignored. This is the equivalent of attaching the stream to /dev/null.
optional
stdin:
| "inherit"
| "piped"
| "null"
| number

By default subprocess inherits stdin of parent process. To change this this option can be set to a resource ID (rid) of an open file, "inherit", "piped", or "null":

  • number: the resource ID of an open file/resource. This allows you to read from a file.
  • "inherit": The default if unspecified. The subprocess inherits from the parent.
  • "piped": A new pipe should be arranged to connect the parent and child sub-process.
  • "null": This stream will be ignored. This is the equivalent of attaching the stream to /dev/null.