Module

std/node/cluster.ts>isPrimary

Deno standard library
Go to Latest
variable isPrimary
import { isPrimary } from "https://deno.land/std@0.145.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.