Skip to main content

useOutput

@webda/core


Function: useOutput()

useOutput(data): void

Defined in: packages/workout/lib/core.d.ts:42

Emit raw program output (a command result) using the global WorkerOutput

Unlike logs, output carries no level or formatting: console loggers write it as-is to stdout so it can be piped, while logs may go to stderr.

Parameters​

data​

string

the raw output to emit

Returns​

void