Skip to main content

Process

import { exitProcess, getCwd, getProcessId } from '@rtorcato/js-common/process'

Exports

NameSummary
exitProcessExits the process with the given code (Node.js only).
getCwdReturns the current working directory (Node.js only).
getProcessIdReturns the current process ID (Node.js only).
getProcessPlatformReturns the current process platform (Node.js only).
getProcessUptimeReturns the current process uptime in seconds (Node.js only).
isCIReturns true if the process is running in a CI environment (Node.js only).