Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Extremely Popular
Go to Latest
method Project.prototype.formatDiagnosticsWithColorAndContext
import { Project } from "https://deno.land/x/fresh@1.1.5/src/dev/deps.ts";

Formats an array of diagnostics with their color and context into a string.

Parameters

diagnostics: ReadonlyArray<Diagnostic>
  • Diagnostics to get a string of.
optional
opts: { newLineChar?: "\n" | "\r\n"; }
  • Collection of options. For example, the new line character to use (defaults to the OS' new line character).

Returns

string