Skip to main content
Process.ppid - process - Node documentation
property Process.ppid

Usage in Deno

import { type Process } from "node:process";

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

number
Back to top