Beginner
cli
Process Information
EditThe 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://raw.githubusercontent.com/denoland/deno-docs/main/by-example/pid.ts