Beginner
cli
Process Information
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://byexample-2qr8vk52swn0.deno.dev/pid.ts