property Process.ppid
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}`);
Type Jump to heading
number
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}`);
number