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

x/cav/deps.ts>graph.ModuleGraphJson

A server framework for Deno
Go to Latest
interface graph.ModuleGraphJson
import { type graph } from "https://deno.land/x/cav@0.2.3/deps.ts";
const { ModuleGraphJson } = graph;

The plain-object representation of a module graph that is suitable for serialization to JSON.

Properties

roots: string[]

The module specifiers (URL string) of the roots of the module graph of which the module graph was built for.

modules: ModuleJson[]

An array of modules that are part of the module graph.

redirects: Record<string, string>

A record/map of any redirects encountered when resolving modules. The key was the requested module specifier and the value is the redirected module specifier.