Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/dts/lib.deno.ns.d.ts>Deno.osRelease

A modern runtime for JavaScript and TypeScript.
Go to Latest
function Deno.osRelease
allow-sys
import { Deno } from "https://deno.land/x/deno@v1.28.1/cli/dts/lib.deno.ns.d.ts";
const { osRelease } = Deno;

Returns the release version of the Operating System.

console.log(Deno.osRelease());

Requires allow-sys permission. Under consideration to possibly move to Deno.build or Deno.versions and if it should depend sys-info, which may not be desirable.

Returns

string