Search code examples
javascriptnode.jsdeno

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  

Solution

  • 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)"