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

x/cav/deps.ts>graph.ModuleGraph#toString

A server framework for Deno
Go to Latest
method graph.ModuleGraph.prototype.toString
Re-export
import { graph } from "https://deno.land/x/cav@0.0.24/deps.ts";
const { ModuleGraph } = graph;

Provides a string output representation of the module graph similar to deno info with or without ANSI color escape sequences. If noColor is expressly true, the string will be returned without color escape sequences. If noColor is expressly false the returned string will include ANSI color escape sequences. If not expressly set, Deno.noColor will be used, or if the Deno namespace isn't present, will default to true and not provide ANSI color escape sequences.

Parameters

optional
noColor: boolean

An optional flag indicating if ANSI color escape codes should be included in the returned string.

Returns

string