MCPcopy Create free account
hub / github.com/simstudioai/sim / jsonLiteral

Function jsonLiteral

apps/sim/app/api/mcp/oauth/callback/route.ts:37–40  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

35}
36
37function jsonLiteral(value: string | undefined): string {
38 if (value === undefined) return 'undefined'
39 return JSON.stringify(value).replace(/</g, '\\u003c').replace(/>/g, '\\u003e')
40}
41
42function htmlClose(
43 message: string,

Callers 1

htmlCloseFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected