MCPcopy
hub / github.com/anomalyco/models.dev / quote

Function quote

packages/core/src/sync/index.ts:682–684  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

680}
681
682function quote(value: string) {
683 return `"${value.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`;
684}
685
686// Preserve the leading comment block (header) authored at the top of a TOML file.
687// `Bun.TOML.parse` discards comments, so the serializer must re-attach them or

Callers 3

formatReasoningValueFunction · 0.85
formatTomlFunction · 0.85
formatMetadataTomlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected