process.pid


新增于: v0.1.15

process.pid 属性返回进程的 PID。

\The process.pid property returns the PID of the process.

import { pid } from 'node:process';
console.log(`This process is pid ${pid}`);const { pid } = require('node:process');
console.log(`This process is pid ${pid}`);

AltStyle によって変換されたページ (->オリジナル) /