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

x/molt/lib/import_map.ts>readFromJson

Update dependencies the Deno way
Latest
function readFromJson
import { readFromJson } from "https://deno.land/x/molt@0.17.2/lib/import_map.ts";

Read an import map from the given file path or URL.

Parameters

url: string | URL
  • The URL of the import map.

Returns

Promise<ImportMap>

The import map object if found.