Skip to main content
Process.pid - process - Node documentation
property Process.pid

Usage in Deno

import { type Process } from "node:process";

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

import { pid } from 'node:process';

console.log(`This process is pid ${pid}`);

Type

number