Skip to main content
Module

x/adka/deno.d.ts>ImportMeta

SSG & SSR: Static site generator and server side rendering using JSX.
Latest
interface ImportMeta
import { type ImportMeta } from "https://deno.land/x/adka@0.1.5/deno.d.ts";

Deno provides extra properties on import.meta. These are included here to ensure that these are still available when using the Deno namepsace in conjunction with other type libs, like dom.

Properties

url: string

A string representation of the fully qualified module URL.

main: boolean

A flag that indicates if the current module is the main module that was called when starting the program under Deno.

if (import.meta.main) {
  // this was loaded as the main module, maybe do some bootstrapping
}