Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
function esbuildTypes.formatMessages
import { esbuildTypes } from "https://deno.land/x/fresh@1.5.2/src/build/deps.ts";
const { formatMessages } = esbuildTypes;

Converts log messages to formatted message strings suitable for printing in the terminal. This allows you to reuse the built-in behavior of esbuild's log message formatter. This is a batch-oriented API for efficiency.

  • Works in node: yes
  • Works in browser: yes

Returns

Promise<string[]>