MCPcopy Create free account
hub / github.com/Effect-TS/effect / escapeGraphVizString

Function escapeGraphVizString

packages/effect/src/Graph.ts:2885–2886  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

2883}
2884
2885const escapeGraphVizString = (value: string): string =>
2886 value.replace(/\\/g, "\\\\").replace(/"/g, "\\\"").replace(/\r\n|\r|\n/g, "\\n")
2887
2888/**
2889 * Exports a graph to GraphViz DOT format for visualization.

Callers 1

Graph.tsFile · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected