Skip to main content
arch - node__os.d.ts - Node documentation
function arch

Usage in Deno

```typescript import { arch } from "node:node__os.d.ts"; ```
arch(): string
Returns the operating system CPU architecture for which the Node.js binary was compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, and `'x64'`. The return value is equivalent to [process.arch](https://nodejs.org/docs/latest-v22.x/api/process.html#processarch).

Return Type

string