import * as denoGraph from "https://deno.land/x/deno_graph@0.36.0/mod.ts";
A JavaScript/TypeScript interface to the Deno CLI's module graph logic.
Example
To build and output a graph as a JSON structure to the console:
import { createGraph } from "https://deno.land/x/deno_graph@{VERSION}/mod.ts";
const graph = await createGraph("https://deno.land/x/std/testing/asserts.ts");
console.log(JSON.stringify(graph, undefined, " "));
Classes
An interface to the web assembly structure of a built module graph. |
Functions
Create a module graph using the same algorithms that are used in the Deno CLI, resolving with the module graph for further processing. | |
f init | Instantiates the Wasm module used within deno_graph. |
f load | A Deno specific loader function that can be passed to the
|
Parse a module based on the supplied information and return its analyzed representation. If an error is encountered when parsing, the function will throw. |
Interfaces
Additional meta data that is used to enrich the output of the module graph. | |
The plain-object representation of a module graph that is suitable for serialization to JSON. | |
Type Aliases
The kind of module. |