Process | typescript
Options
All
  • Public
  • Public/Protected
  • All
Menu

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: any

execArgv

execArgv: string[]

execPath

execPath: string

exitCode

exitCode: number

Optional mainModule

mainModule: NodeModule

pid

pid: number

platform

platform: Platform

stderr

stderr: WriteStream

stdin

stdin: ReadStream

stdout

stdout: WriteStream

title

title: string

version

version: string

versions

versions: ProcessVersions

Methods

abort

  • abort(): void
  • Returns void

addListener

  • addListener(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

chdir

  • chdir(directory: string): void
  • Parameters

    • directory: string

    Returns void

cpuUsage

  • Parameters

    Returns CpuUsage

cwd

  • cwd(): string
  • Returns string

disconnect

  • disconnect(): void
  • Returns void

emit

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

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

emitWarning

  • emitWarning(warning: string | Error, name?: string, ctor?: Function): void
  • Parameters

    • warning: string | Error
    • Optional name: string
    • Optional ctor: Function

    Returns void

eventNames

  • eventNames(): (string | symbol)[]
  • Returns (string | symbol)[]

exit

  • exit(code?: number): void
  • Parameters

    • Optional code: number

    Returns void

getMaxListeners

  • getMaxListeners(): number
  • Returns number

getgid

  • getgid(): number
  • Returns number

getuid

  • getuid(): number
  • Returns number

hrtime

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

    • Optional time: [number, number]

    Returns [number, number]

kill

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

    • pid: number
    • Optional signal: string | number

    Returns void

listenerCount

  • listenerCount(type: string | symbol): number
  • Parameters

    • type: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

memoryUsage

  • Returns MemoryUsage

nextTick

  • nextTick(callback: Function, ...args: any[]): void
  • Parameters

    • callback: Function
    • Rest ...args: any[]

    Returns void

on

  • on(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

once

  • once(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

prependListener

  • prependListener(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

removeAllListeners

  • removeAllListeners(event?: string | symbol): this
  • Parameters

    • Optional event: string | symbol

    Returns this

removeListener

  • removeListener(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

Optional send

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

    • message: any
    • Optional sendHandle: any

    Returns void

setMaxListeners

  • setMaxListeners(n: number): this
  • Parameters

    • n: number

    Returns this

setgid

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

    • id: number

    Returns void

  • Parameters

    • id: string

    Returns void

setuid

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

    • id: number

    Returns void

  • Parameters

    • id: string

    Returns void

umask

  • umask(mask?: number): number
  • Parameters

    • Optional mask: number

    Returns number

uptime

  • uptime(): number
  • Returns number

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc