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

Function warn

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

Source from the content-addressed store, hash-verified

56}
57
58export async function warn(message: string, ...args: any[]): Promise<void> {
59 await clearLine(process.stderr)
60 await writeStderr(format(label('warn', message), ...args))
61 await writeStderr('\n')
62}
63
64export function getStdinAsString(): Promise<string> {
65 let result = ''

Callers 2

extractFunction · 0.85

Calls 3

clearLineFunction · 0.85
labelFunction · 0.70
formatFunction · 0.50

Tested by

no test coverage detected