Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

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