Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Process

Hierarchy

Index

Properties

arch

arch: string

argv

argv: string[]

argv0

argv0: string

config

config: object

Type declaration

  • target_defaults: object
    • cflags: any[]
    • default_configuration: string
    • defines: string[]
    • include_dirs: string[]
    • libraries: string[]
  • variables: object
    • clang: number
    • host_arch: string
    • node_install_npm: boolean
    • node_install_waf: boolean
    • node_prefix: string
    • node_shared_openssl: boolean
    • node_shared_v8: boolean
    • node_shared_zlib: boolean
    • node_use_dtrace: boolean
    • node_use_etw: boolean
    • node_use_openssl: boolean
    • target_arch: string
    • v8_no_strict_aliasing: number
    • v8_use_snapshot: boolean
    • visibility: string

connected

connected: boolean

domain

domain: Domain

env

env: Env

execArgv

execArgv: string[]

The process.execArgv property returns the set of Node.js-specific command-line options passed when the Node.js process was launched. These options do not appear in the array returned by the process.argv property, and do not include the Node.js executable, the name of the script, or any options following the script name. These options are useful in order to spawn child processes with the same execution environment as the parent.

execPath

execPath: string

Optional exitCode

exitCode: number

pid

pid: number

platform

platform: string

stderr

stdin

stdout

title

title: string

version

version: string

versions

versions: Versions

Methods

abort

  • abort(): void

addListener

  • addListener(event: string, listener: Function)

chdir

  • chdir(directory: string): void

cwd

  • cwd(): string

disconnect

  • disconnect(): void

emit

  • emit(event: string, ...args: any[]): boolean

eventNames

  • eventNames(): string[]

exit

  • exit(code?: number): void

getMaxListeners

  • getMaxListeners(): number

getgid

  • getgid(): number

getuid

  • getuid(): number

hrtime

  • hrtime(time?: number[]): number[]

kill

  • kill(pid: number, signal?: string | number): void

listenerCount

  • listenerCount(type: string): number

listeners

  • listeners(event: string): Function[]

memoryUsage

nextTick

  • nextTick(callback: Function): void

on

  • on(event: string, listener: Function)

once

  • once(event: string, listener: Function)

prependListener

  • prependListener(event: string, listener: Function)

prependOnceListener

  • prependOnceListener(event: string, listener: Function)

removeAllListeners

  • removeAllListeners(event?: string)

removeListener

  • removeListener(event: string, listener: Function)

Optional send

  • send(message: any, sendHandle?: any): void

setMaxListeners

  • setMaxListeners(n: number)

setgid

  • setgid(id: number): void
  • setgid(id: string): void

setuid

  • setuid(id: number): void
  • setuid(id: string): void

umask

  • umask(mask?: number): number

uptime

  • uptime(): number

Generated using TypeDoc