MCPcopy
hub / github.com/flightcontrolhq/superjson / escapeKey

Function escapeKey

src/pathstringifier.ts:4–5  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

2type Path = string[];
3
4export const escapeKey = (key: string) =>
5 key.replace(/\\/g, '\\\\').replace(/\./g, '\\.');
6
7export const stringifyPath = (path: Path): StringifiedPath =>
8 path

Callers 2

walkerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…