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-y960a7h1v5j0.deno.dev/pid.ts