deno.com

Getting the Deno version

在 Github 上编辑

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.
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.
console.log("Current TypeScript version", Deno.version.typescript);
console.log("Current V8 version", Deno.version.v8);

使用 Deno CLI 在本地运行 此示例

deno run https://docs.denohub.com/examples/scripts/deno_version.ts

Additional resources

你找到需要的内容了吗?

隐私政策