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

x/deno_graph/mod.ts>load

The module graph logic for Deno CLI
Go to Latest
function load
import { load } from "https://deno.land/x/deno_graph@0.58.0/mod.ts";

A Deno specific loader function that can be passed to the createModuleGraph which will use Deno.readTextFile for local files, or use fetch() for remote modules.

Parameters

specifier: string

The string module specifier from the module graph.

Returns

Promise<LoadResponse | undefined>