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

x/import_map/mod.ts>ImportMap

An implementation of WICG Import Maps specification
Latest
class ImportMap
import { ImportMap } from "https://deno.land/x/import_map@v0.20.1/mod.ts";

Constructors

new
ImportMap(inner: JsImportMap)

Methods

resolve(specifier: string, referrer: string | URL)

Given a specifier and a referrer, return the resolved string URL.

toJSON(): string

Return the value of the import map as a JSON string.