Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

A modern runtime for JavaScript and TypeScript.
Latest
variable Deno.version
import { Deno } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.ns.d.ts";
const { version } = Deno;

Version information related to the current Deno CLI runtime environment.

Users are discouraged from code branching based on this information, as assumptions about what is available in what build environment might change over time. Developers should specifically sniff out the features they intend to use.

The intended use for the information is for logging and debugging purposes.

type

{ deno: string; v8: string; typescript: string; }