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

Usage in Deno

```typescript import { type } from "node:node__os.d.ts"; ```
type(): string
Returns the operating system name as returned by [`uname(3)`](https://linux.die.net/man/3/uname). For example, it returns `'Linux'` on Linux, `'Darwin'` on macOS, and `'Windows_NT'` on Windows. See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for additional information about the output of running [`uname(3)`](https://linux.die.net/man/3/uname) on various operating systems.

Return Type

string