Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.ns.d.ts>Deno.mainModule

A modern runtime for JavaScript and TypeScript.
Latest
variable Deno.mainModule
allow-read
import { Deno } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.ns.d.ts";
const { mainModule } = Deno;

The URL of the entrypoint module entered from the command-line. It requires read permission to the CWD.

Also see ImportMeta for other related information.

type

string