Skip to main content

@rtorcato/js-common / process

process

Functions

getProcessId()

getProcessId(): number | undefined

Defined in: process/index.ts:5

Returns the current process ID (Node.js only).

Returns

number | undefined


getProcessUptime()

getProcessUptime(): number | undefined

Defined in: process/index.ts:14

Returns the current process uptime in seconds (Node.js only).

Returns

number | undefined


getCwd()

getCwd(): string | undefined

Defined in: process/index.ts:24

Returns the current working directory (Node.js only).

Returns

string | undefined


getProcessPlatform()

getProcessPlatform(): string | undefined

Defined in: process/index.ts:33

Returns the current process platform (Node.js only).

Returns

string | undefined


exitProcess()

exitProcess(code?): void

Defined in: process/index.ts:42

Exits the process with the given code (Node.js only).

Parameters

code?

number = 0

Exit code (default 0).

Returns

void


isCI()

isCI(): boolean

Defined in: process/index.ts:50

Returns true if the process is running in a CI environment (Node.js only).

Returns

boolean