Skip to main content
type - os - Node documentation
function type

Usage in Deno

import { type } from "node:os";
type(): string

Returns the operating system name as returned by uname(3). For example, it returns 'Linux' on Linux, 'Darwin' on macOS, and 'Windows_NT' on Windows.

See https://en.wikipedia.org/wiki/Uname#Examples for additional information about the output of running uname(3) on various operating systems.

Return Type

string