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

x/import_map/mod.ts>parseFromJson

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

Given a base and a JSON string with the contents of a import map,

Parameters

baseUrl: string | URL
json: string | ImportMapJson
optional
opts: { expandImports?: boolean; }