MCPcopy Index your code
hub / github.com/formatjs/formatjs / debug

Function debug

packages/cli-lib/console_utils.ts:49–56  ·  view source on GitHub ↗
(message: string, ...args: any[])

Source from the content-addressed store, hash-verified

47}
48
49export async function debug(message: string, ...args: any[]): Promise<void> {
50 if (process.env.LOG_LEVEL !== 'debug') {
51 return
52 }
53 await clearLine(process.stderr)
54 await writeStderr(format(label('debug', message), ...args))
55 await writeStderr('\n')
56}
57
58export async function warn(message: string, ...args: any[]): Promise<void> {
59 await clearLine(process.stderr)

Callers 11

processFileFunction · 0.70
extractFunction · 0.70
extractAndWriteFunction · 0.70
parseScriptFunction · 0.70
compileFunction · 0.70
compileAndWriteFunction · 0.70
mainFunction · 0.70
verifyFunction · 0.50
checkMissingKeysFunction · 0.50
checkExtraKeysFunction · 0.50
checkStructuralEqualityFunction · 0.50

Calls 3

clearLineFunction · 0.85
labelFunction · 0.70
formatFunction · 0.50

Tested by

no test coverage detected