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

Usage in Deno

```typescript import { version } from "node:node__os.d.ts"; ```
version(): string
Returns a string identifying the kernel version. On POSIX systems, the operating system release is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `RtlGetVersion()` is used, and if it is not available, `GetVersionExW()` will be used. See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information.

Return Type

string