Type:
integerThe 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}`);
integerThe 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}`);