logoDenoby example

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