Beginner
cli
Process Information
The current process's process ID is available in the `Deno.pid` variable.
!--frsh-copybutton:1-->
console.log(Deno.pid);
The parent process ID is available in the Deno namespace too.
!--frsh-copybutton:2-->
console.log(Deno.ppid);
Run this example locally using the Deno CLI:
deno run https://byexample-wwv03xf36j0g.deno.dev/pid.ts