Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to see the typescript version is used in current deno version?

I tried with deno -V, it gives only deno's version and does not include typescript version.

$deno -V
deno 1.0.0-rc2
$ 
like image 529
Siva K V Avatar asked May 17 '20 16:05

Siva K V


2 Answers

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)"
like image 76
xdeepakv Avatar answered Oct 20 '22 21:10

xdeepakv


Typing deno --version gives you full informations

$ deno --version
deno 1.0.0
v8 8.4.300
typescript 3.9.2
like image 34
BentoumiTech Avatar answered Oct 20 '22 20:10

BentoumiTech