Deno.ppid - Deno documentation
variable Deno.ppid

The process ID of parent process of this instance of the Deno CLI.

console.log(Deno.ppid);

Type

number