MCPcopy Create free account
hub / github.com/coder/mux / safeStringify

Function safeStringify

vscode/src/webview/vscodeBridge.ts:13–19  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

11}
12
13function safeStringify(value: unknown): string {
14 try {
15 return JSON.stringify(value);
16 } catch {
17 return String(value);
18 }
19}
20
21let cachedBridge: VscodeBridge | null = null;
22

Callers 1

getVscodeBridgeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected