MCPcopy Create free account
hub / github.com/SethGammon/Citadel / renderObject

Function renderObject

scripts/sandbox-provider.js:57–66  ·  view source on GitHub ↗
(title, value)

Source from the content-addressed store, hash-verified

55}
56
57function renderObject(title, value) {
58 const lines = [];
59 lines.push(title);
60 lines.push('='.repeat(40));
61 for (const [key, item] of Object.entries(value)) {
62 if (item && typeof item === 'object') lines.push(`${key}: ${JSON.stringify(item)}`);
63 else lines.push(`${key}: ${item}`);
64 }
65 return `${lines.join('\n')}\n`;
66}
67
68async function main() {
69 const args = parseArgs(process.argv);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected