Module

std/node/cluster.ts>isPrimary

Deno standard library
Go to Latest
variable isPrimary
import { isPrimary } from "https://dotland.deno.dev/std@0.177.0/node/cluster.ts";

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.