Skip to main content

Process information

Edit on Github
The current process's process ID is available in the `Deno.pid` variable.
console.log(Deno.pid);
The parent process ID is available in the Deno namespace too.
console.log(Deno.ppid);

Run this example locally using the Deno CLI:

deno run https://docs.deno.com/examples/pid.ts