Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface ChildProcessOptions
import { type ChildProcessOptions } from "https://deno.land/std@0.138.0/node/internal/child_process.ts";

Properties

optional
cwd: string

Current working directory of the child process.

optional
env: Record<string, string | number | boolean>

Environment variables passed to the child process.

optional
stdio: Array<
| NodeStdio
| number
| null
| undefined
> | NodeStdio

This option defines child process's stdio configuration.

optional
detached: boolean

NOTE: This option is not yet implemented.

optional
uid: number

NOTE: This option is not yet implemented.

optional
gid: number

NOTE: This option is not yet implemented.

optional
argv0: string

NOTE: This option is not yet implemented.

optional
shell: string | boolean
  • If this option is true, run the command in the shell.
  • If this option is a string, run the command in the specified shell.
optional
signal: AbortSignal

Allows aborting the child process using an AbortSignal.

optional
serialization: "json" | "advanced"

NOTE: This option is not yet implemented.

optional
windowsVerbatimArguments: boolean

NOTE: This option is not yet implemented.

optional
windowsHide: boolean

NOTE: This option is not yet implemented.