method ImportMeta.resolve
Usage in Deno
import { type ImportMeta } from "node:module";
ImportMeta.resolve(specifier: string,parent?: ,): string
Provides a module-relative resolution function scoped to each module, returning the URL string.
Second parent
parameter is only used when the --experimental-import-meta-resolve
command flag enabled.
string
The absolute (file:
) URL string for the resolved module.