ppid

abstract val ppid: Double(source)

The process.ppid property returns the PID of the parent of the current process.

import { ppid } from 'node:process';

console.log(`The parent process is pid ${ppid}`);

Since

v9.2.0, v8.10.0, v6.13.0