Skip to content

lightgun-poc / lib/tunnel / summarizeNgrokOutput

Function: summarizeNgrokOutput()

summarizeNgrokOutput(lines): string

Defined in: lib/tunnel.ts:92

Pulls the useful part out of the agent's JSON log.

Its failures are the interesting ones — no authtoken, an account limited to one session, a region typo — and they arrive as err/msg fields the user would otherwise never see, because the agent's own output is swallowed.

Parameters

lines

string[]

Returns

string

Released under the MIT License.