deno.com

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);

使用 Deno CLI 在本地运行 此示例

deno run https://docs.denohub.com/examples/scripts/pid.ts

你找到需要的内容了吗?

隐私政策