Process

process.arch

Reports the architecture of the running Node executable, which can differ from the physical machine architecture under emulation. Use it when choosing compatible native binaries. Tested on Node.js 22.16.0. Example output (one line per entry): ["true"].

Formal Syntax & Structure

nodejs syntaxnodejs
process.arch

Return Value

string

Architecture identifier.

Working Example

Example Snippetnodejs
import os from 'node:os';console.log(process.arch === os.arch());
Node.js Reference