MCPcopy Index your code
hub / github.com/coder/code-server / escapeJSON

Function escapeJSON

src/node/util.ts:503–503  ·  view source on GitHub ↗
(value: cp.Serializable)

Source from the content-addressed store, hash-verified

501
502// TODO: Replace with proper templating system.
503export const escapeJSON = (value: cp.Serializable) => JSON.stringify(value).replace(/"/g, """)
504
505/**
506 * Split a string on the first equals. The result will always be an array with

Callers 1

replaceTemplatesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected