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

x/deno_graph/mod.ts>ModuleGraph#toJSON

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

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