Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "exec"

Index

Functions

Object literals

Functions

exec

  • exec(cmd: string, args: string | string[], options?: boolean | SpawnSyncOptions): string
  • Exec Executes command using child process.

    Parameters

    • cmd: string

      node, npm or shell command to be executed.

    • args: string | string[]

      arguments to be passed to command.

    • Optional options: boolean | SpawnSyncOptions

      the child process spawn options.

    Returns string

Object literals

methods

methods: object

command

command: exec = exec

git

git: any = exec.bind(null, 'git')

node

node: any = exec.bind(null, 'node')

npm

npm: any = exec.bind(null, 'npm')

spawnDefaults

spawnDefaults: object

cwd

cwd: string = process.cwd()

shell

shell: boolean = true

stdio

stdio: string = "inherit"

Generated using TypeDoc