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

x/lume/deps/esbuild.ts>formatMessages

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
function formatMessages
import { formatMessages } from "https://deno.land/x/lume@v1.18.2/deps/esbuild.ts";

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

Parameters

messages: PartialMessage[]
options: FormatMessagesOptions

Returns

Promise<string[]>