Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

A modern runtime for JavaScript and TypeScript.
Go to Latest
variable Deno.mainModule
allow-read
import { Deno } from "https://deno.land/x/deno@v1.28.1/cli/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