MCPcopy Create free account
hub / github.com/CashScript/cashscript / formatKey

Function formatKey

packages/utils/src/artifact.ts:142–142  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

140 if (entries.length === 0) return '{}';
141
142 const formatKey = (key: string): string => (format === 'json' ? JSON.stringify(key) : key);
143 const formatted = entries.map(
144 ([key, value]) => `${formatKey(key)}: ${stringify(value, format, indentationLevel + 1)}`,
145 );

Callers 1

formatObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected