MCPcopy Index your code
hub / github.com/callstack/agent-device / formatScriptStringLiteral

Function formatScriptStringLiteral

src/replay/script-utils.ts:40–42  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

38
39// Use for literal values such as device labels where leading/trailing whitespace must survive round-trips.
40export function formatScriptStringLiteral(value: string): string {
41 return JSON.stringify(value);
42}
43
44// Preserve readable CLI-ish script output for ordinary tokens while still quoting whitespace.
45function formatScriptArgQuoteIfNeeded(value: string): string {

Callers 3

writeReplayScriptFunction · 0.90
formatScriptFunction · 0.90
formatScriptTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected