property Process.pid
The process.pid
property returns the PID of the process.
import { pid } from 'node:process';
console.log(`This process is pid ${pid}`);
Type Jump to heading
number
The process.pid
property returns the PID of the process.
import { pid } from 'node:process';
console.log(`This process is pid ${pid}`);
number