MCPcopy Create free account
hub / github.com/Eversmile12/sharedcontext / toTomlString

Function toTomlString

src/cli/setup.ts:196–199  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

194}
195
196function toTomlString(value: string): string {
197 const escaped = value.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
198 return `"${escaped}"`;
199}
200
201function readJsonObject(path: string): JsonObject {
202 if (!existsSync(path)) {

Callers 1

updateCodexConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected