I tried with deno -V
, it gives only deno's version and does not include typescript version.
$deno -V
deno 1.0.0-rc2
I tried with deno -V
, it gives only deno's version and does not include typescript version.
$deno -V
deno 1.0.0-rc2
You can use --version
with the latest versions binary
$ deno --version
OR Use deno shell
$ deno
> Deno.version
Deno.version
{ deno: "1.0.0", v8: "8.4.300", typescript: "3.9.2" }
Or using eval
command
$ deno eval "console.log(Deno.version)"
// OR
$ deno eval "console.log(Deno.version.typescript)"
Typing deno --version
gives you full informations
$ deno --version
deno 1.0.0
v8 8.4.300
typescript 3.9.2
01. deno --version
will gives you typescript version, deno version and
v8 version
$ deno --version
deno 1.0.0
v8 8.4.300
typescript 3.9.2
02. By using deno shell and providing Deno.version.typescript
will gives typescript version directly.
$ deno
> Deno.version.typescript
3.9.2
At the moment of writing the answer, the typescript is bundled in Deno as a Git submodule, which you can find here on GitHub, which has a revision of 551f0dd9a1b57ecd527a665b0af7fc98cd107af6, which in turn corresponds to version 3.9.2.
Although, the question about printing the TypeScript version from deno CLI is a courtesy of Deno developers.
© 2022 - 2024 — McMap. All rights reserved.
console.log(Deno.version)
– Assurance