MCPcopy
hub / github.com/rolldown/tsdown / getNameLabel

Function getNameLabel

src/utils/logger.ts:133–136  ·  view source on GitHub ↗
(ansis: Ansis, name?: string)

Source from the content-addressed store, hash-verified

131export const globalLogger: Logger = createLogger()
132
133export function getNameLabel(ansis: Ansis, name?: string): string | undefined {
134 if (!name) return undefined
135 return ansis(`[${name}]`)
136}
137
138export function prettyFormat(format: InternalModuleFormat): string {
139 const formatColor = format === 'es' ? blue : format === 'cjs' ? yellow : noop

Callers 2

logger.test.tsFile · 0.90
resolveUserConfigFunction · 0.90

Calls 1

ansisFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…