Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno_graph/lib/types.d.ts>ModuleGraph#toJSON

The module graph logic for Deno CLI
Go to Latest
method ModuleGraph.prototype.toJSON
import { ModuleGraph } from "https://deno.land/x/deno_graph@0.37.1/lib/types.d.ts";

Returns a plain-object representation of the module graph suitable for serialization as JSON, similar to the deno info --json output.