Skip to main content
Process.platform - node__process.d.ts - Node documentation
property Process.platform

Usage in Deno

```typescript import { type Process } from "node:node__process.d.ts"; ```
The `process.platform` property returns a string identifying the operating system platform for which the Node.js binary was compiled. Currently possible values are: * `'aix'` * `'darwin'` * `'freebsd'` * `'linux'` * `'openbsd'` * `'sunos'` * `'win32'` ```js import { platform } from 'node:process'; console.log(`This platform is ${platform}`); ``` The value `'android'` may also be returned if the Node.js is built on the Android operating system. However, Android support in Node.js [is experimental](https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os).

Type