MCPcopy Index your code
hub / github.com/coder/mux / parseJsonLine

Function parseJsonLine

src/node/runtime/devcontainerCli.ts:68–74  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

66}
67
68function parseJsonLine(line: string): unknown {
69 try {
70 return JSON.parse(line) as unknown;
71 } catch {
72 return null;
73 }
74}
75
76export function parseDevcontainerStdoutLine(line: string): DevcontainerStdoutParse | null {
77 const trimmed = line.trim();

Callers 1

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected