Skip to content

ProcessObject

Nodepod API


Nodepod API / src / ProcessObject

Defined in: src/polyfills/process.ts:78

optional _chdirHook?: (dir) => void

Defined in: src/polyfills/process.ts:82

string

void


optional _debugCwdCalls?: number

Defined in: src/polyfills/process.ts:178


optional _getActiveHandles?: () => unknown[]

Defined in: src/polyfills/process.ts:191

unknown[]


optional _getActiveRequests?: () => unknown[]

Defined in: src/polyfills/process.ts:190

unknown[]


optional _linkedBinding?: (name) => Record<string, unknown>

Defined in: src/polyfills/process.ts:187

string

Record<string, unknown>


abort: () => never

Defined in: src/polyfills/process.ts:136

never


addListener: (evt, fn) => ProcessObject

Defined in: src/polyfills/process.ts:165

string

EventHandler

ProcessObject


allowedNodeEnvironmentFlags: Set<string>

Defined in: src/polyfills/process.ts:160


arch: string

Defined in: src/polyfills/process.ts:111


argv: string[]

Defined in: src/polyfills/process.ts:94


argv0: string

Defined in: src/polyfills/process.ts:95


optional availableMemory?: () => number

Defined in: src/polyfills/process.ts:205

number


optional binding?: (name) => Record<string, unknown>

Defined in: src/polyfills/process.ts:186

string

Record<string, unknown>


optional channel?: unknown

Defined in: src/polyfills/process.ts:180


chdir: (dir) => void

Defined in: src/polyfills/process.ts:81

string

void


config: object

Defined in: src/polyfills/process.ts:144

target_defaults: Record<string, unknown>

variables: Record<string, unknown>


optional connected?: boolean

Defined in: src/polyfills/process.ts:177


optional constrainedMemory?: () => number

Defined in: src/polyfills/process.ts:204

number


cpuUsage: () => object

Defined in: src/polyfills/process.ts:125

object

system: number

user: number


cwd: () => string

Defined in: src/polyfills/process.ts:80

string


debugPort: number

Defined in: src/polyfills/process.ts:159


optional disconnect?: () => void

Defined in: src/polyfills/process.ts:176

void


optional dlopen?: (module, filename, flags?) => void

Defined in: src/polyfills/process.ts:188

unknown

string

number

void


emit: (evt, …args) => boolean

Defined in: src/polyfills/process.ts:164

string

…unknown[]

boolean


optional emitWarning?: (warning, typeOrOptions?, code?) => void

Defined in: src/polyfills/process.ts:193

string | Error

string | { code?: string; detail?: string; type?: string; }

string

void


env: ProcessEnvVars

Defined in: src/polyfills/process.ts:79


eventNames: () => string[]

Defined in: src/polyfills/process.ts:172

string[]


execArgv: string[]

Defined in: src/polyfills/process.ts:97


execPath: string

Defined in: src/polyfills/process.ts:96


exit: (code?) => never

Defined in: src/polyfills/process.ts:106

number

never


optional exitCode?: number

Defined in: src/polyfills/process.ts:105

undefined by default. user code can set this to seed an exit code for process.exit() (no arg) or natural drain. process.exit(N) overrides and writes N back here.


features: object

Defined in: src/polyfills/process.ts:149

debug: boolean

inspector: boolean

ipv6: boolean

tls: boolean

tls_alpn: boolean

tls_ocsp: boolean

tls_sni: boolean

uv: boolean


optional getActiveResourcesInfo?: () => string[]

Defined in: src/polyfills/process.ts:192

string[]


getegid: () => number

Defined in: src/polyfills/process.ts:142

number


geteuid: () => number

Defined in: src/polyfills/process.ts:140

number


getgid: () => number

Defined in: src/polyfills/process.ts:141

number


getgroups: () => number[]

Defined in: src/polyfills/process.ts:143

number[]


getMaxListeners: () => number

Defined in: src/polyfills/process.ts:174

number


getuid: () => number

Defined in: src/polyfills/process.ts:139

number


optional hasUncaughtExceptionCaptureCallback?: () => boolean

Defined in: src/polyfills/process.ts:198

boolean


hrtime: {(prev?): [number, number]; bigint: () => bigint; }

Defined in: src/polyfills/process.ts:113

[number, number]

[number, number]

bigint: () => bigint

bigint


kill: (pid, signal?) => boolean

Defined in: src/polyfills/process.ts:137

number

string | number

boolean


listenerCount: (evt) => number

Defined in: src/polyfills/process.ts:169

string

number


listeners: (evt) => EventHandler[]

Defined in: src/polyfills/process.ts:168

string

EventHandler[]


optional mainModule?: unknown

Defined in: src/polyfills/process.ts:179


memoryUsage: () => object

Defined in: src/polyfills/process.ts:117

object

arrayBuffers: number

external: number

heapTotal: number

heapUsed: number

rss: number


nextTick: (fn, …args) => void

Defined in: src/polyfills/process.ts:107

(…args) => void

…unknown[]

void


optional noDeprecation?: boolean

Defined in: src/polyfills/process.ts:181


off: (evt, fn) => ProcessObject

Defined in: src/polyfills/process.ts:163

string

EventHandler

ProcessObject


on: (evt, fn) => ProcessObject

Defined in: src/polyfills/process.ts:161

string

EventHandler

ProcessObject


once: (evt, fn) => ProcessObject

Defined in: src/polyfills/process.ts:162

string

EventHandler

ProcessObject


pid: number

Defined in: src/polyfills/process.ts:98


platform: string

Defined in: src/polyfills/process.ts:83


ppid: number

Defined in: src/polyfills/process.ts:99


prependListener: (evt, fn) => ProcessObject

Defined in: src/polyfills/process.ts:170

string

EventHandler

ProcessObject


prependOnceListener: (evt, fn) => ProcessObject

Defined in: src/polyfills/process.ts:171

string

EventHandler

ProcessObject


optional reallyExit?: (code?) => void

Defined in: src/polyfills/process.ts:189

number

void


release: object

Defined in: src/polyfills/process.ts:148

headersUrl: string

name: string

sourceUrl: string


removeAllListeners: (evt?) => ProcessObject

Defined in: src/polyfills/process.ts:167

string

ProcessObject


removeListener: (evt, fn) => ProcessObject

Defined in: src/polyfills/process.ts:166

string

EventHandler

ProcessObject


optional report?: Record<string, unknown>

Defined in: src/polyfills/process.ts:185


resourceUsage: () => object

Defined in: src/polyfills/process.ts:126

object

fsRead: number

fsWrite: number

involuntaryContextSwitches: number

ipcReceived: number

ipcSent: number

majorPageFault: number

maxRSS: number

minorPageFault: number

sharedMemorySize: number

signalsCount: number

swappedOut: number

systemCPUTime: number

unsharedDataSize: number

unsharedStackSize: number

userCPUTime: number

voluntaryContextSwitches: number


optional send?: (msg, cb?) => boolean

Defined in: src/polyfills/process.ts:175

unknown

(err) => void

boolean


setMaxListeners: (n) => ProcessObject

Defined in: src/polyfills/process.ts:173

number

ProcessObject


optional setSourceMapsEnabled?: (val) => void

Defined in: src/polyfills/process.ts:203

boolean

void


optional setUncaughtExceptionCaptureCallback?: (fn) => void

Defined in: src/polyfills/process.ts:199

((err) => void) | null

void


optional sourceMapsEnabled?: boolean

Defined in: src/polyfills/process.ts:202


stderr: OutputStreamBridge

Defined in: src/polyfills/process.ts:109


stdin: InputStreamBridge

Defined in: src/polyfills/process.ts:110


stdout: OutputStreamBridge

Defined in: src/polyfills/process.ts:108


optional throwDeprecation?: boolean

Defined in: src/polyfills/process.ts:182


title: string

Defined in: src/polyfills/process.ts:112


optional traceDeprecation?: boolean

Defined in: src/polyfills/process.ts:183


optional traceProcessWarnings?: boolean

Defined in: src/polyfills/process.ts:184


umask: (mask?) => number

Defined in: src/polyfills/process.ts:138

number

number


uptime: () => number

Defined in: src/polyfills/process.ts:124

number


version: string

Defined in: src/polyfills/process.ts:84


versions: object

Defined in: src/polyfills/process.ts:85

modules: string

napi: string

node: string

openssl: string

uv: string

v8: string

webcontainer: string