Skip to main content
Cluster.isPrimary - cluster - Node documentation
property Cluster.isPrimary

Usage in Deno

import { type Cluster } from "node:cluster";

True if the process is a primary. This is determined by the process.env.NODE_UNIQUE_ID. If process.env.NODE_UNIQUE_ID is undefined, then isPrimary is true.

Type

boolean