Beginner
cli
Getting the Deno version
How to examine the version of Deno being used.
To print the current version of Deno, just reach into the Deno global object where all non-web-standard APIs reside.
!--frsh-copybutton:1-->
console.log("Current Deno version", Deno.version.deno);
Deno has two main dependencies: the V8 JavaScript engine (from the Chrome web browser) and the TypeScript compiler. The versions of these are also accessible in the `Deno.version` object.
!--frsh-copybutton:2-->
console.log("Current TypeScript version", Deno.version.typescript);
console.log("Current V8 version", Deno.version.v8);
Run this example locally using the Deno CLI:
deno run https://byexample-wwv03xf36j0g.deno.dev/deno-version.ts
Additional resources: